/** * Display a listing of the resource. * * @return Response */ public function index() { $methods = Method::all(); return view('admin.method.base', ['methods' => $methods]); }
public function compose(View $view) { $examList = array('' => 'Select a exam date') + DB::table('sittings')->select(DB::raw('concat (month," / ",year) as sitting,id'))->lists('sitting', 'id'); $view->with('methodList', \App\Method::all())->with('levelList', \App\Level::all())->with('paperList', \App\Paper::all())->with('centreList', \App\Centre::all())->with('elementList', \App\Element::all())->with('examList', $examList); }