Esempio n. 1
0
 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'));
 }
Esempio n. 2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $renters = Renter::all();
     return view('admin.renter.index', compact('renters'));
 }