Ejemplo n.º 1
0
 public function index()
 {
     $franchises = Franchise::orderBy('franchName', 'asc')->get();
     $records = threeColumns($franchises);
     return view('franchises.index')->with(['recordsCol1' => $records['recordsCol1'], 'recordsCol2' => $records['recordsCol2'], 'recordsCol3' => $records['recordsCol3']]);
 }
Ejemplo n.º 2
0
 public function playersList($name)
 {
     $players = Master::where('nameLast', 'like', $name . '%')->orderBy('nameLast', 'asc')->orderBy('nameFirst', 'asc')->get();
     $records = threeColumns($players);
     return view('players.list')->with(['name' => strtoupper($name), 'recordsCol1' => $records['recordsCol1'], 'recordsCol2' => $records['recordsCol2'], 'recordsCol3' => $records['recordsCol3']]);
 }