/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $faculty = Faculty::all(); $data = array('faculties' => $faculty, 'name' => 'hrishikesh', 'age' => 26); return view('faculty.list', $data); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // get all the faculties $faculties = Faculty::all(); // load the view and pass the staffs return view('faculty.index', compact('faculties')); }
/** * Bootstrap any application services. * * @return void */ public function boot() { Validator::extend('future', function ($attribute, $value, $parameters) { return Carbon::parse($value)->isFuture(); }); view()->composer('includes.public.svmenu', function ($view) { $view->with('faculties', Faculty::all()); }); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $faculties = Faculty::all(); return view('pages.admin.faculties.index', compact('faculties')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $faculties = Faculty::all(); $associations = Association::all(); return view('pages.admin.associations.index', compact('associations', 'faculties')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $faculties = Faculty::all(); return view('dashboard.admin.faculty.index', ['faculty' => $faculties]); }