コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     $tenants = Tenant::orderBy('lastname', 'asc')->get();
     return view('tenants.index', ['title' => 'Tenants', 'tenants' => $tenants]);
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $tenants = Tenant::orderBy('name', 'Asc')->get();
     return view('tenants.index')->with('tenants', $tenants);
 }