Пример #1
0
 /**
  * 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'));
 }
Пример #3
0
 /**
  * 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());
     });
 }
Пример #4
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $faculties = Faculty::all();
     return view('pages.admin.faculties.index', compact('faculties'));
 }
Пример #5
0
 /**
  * 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'));
 }
Пример #6
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $faculties = Faculty::all();
     return view('dashboard.admin.faculty.index', ['faculty' => $faculties]);
 }