Example #1
0
 public function index()
 {
     // show all
     $records = Landlord::all();
     return $records;
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $landlords = Landlord::all();
     return view('admin.landlord.index', compact('landlords'));
 }