public function assign() { $users = User::lists('name', 'id'); $schools = Schools::lists('school_name', 'id'); $departments = Departments::lists('department_name', 'id'); $designations = Designations::lists('designation', 'id'); return view('Designation.assign', compact('schools', 'departments', 'designations', 'users')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $schools = Schools::lists('school_name', 'id'); return view('Department.create', compact('schools')); }