public function index() { //get each propert from database $columns = array('last_name' => 'Last Name', 'first_name' => 'First Name', 'phone_number' => 'Phone', 'email' => 'Email'); $renters = Renter::all(); return view('renters.index', compact('columns', 'renters')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $renters = Renter::all(); return view('admin.renter.index', compact('renters')); }