/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $departments = Department::lists('name', 'name'); $designations = Designation::lists('name', 'name'); return view('layouts.saveTeacher', ['departments' => $departments, 'designations' => $designations]); }