/** * Display a listing of the resource. * * @return Response */ public function index() { //if admin, show all $this->authorize('manage', new School()); $schools = School::latest()->get(); return view('school.index', compact('schools')); }