/** * Show the form for creating a new resource. * * @return Response */ public function create() { $users_list = Student::lists("student_number", "id"); if (Auth::user()->isStudent()) { $users_list = [Auth::user()->id => Auth::user()->student->student_number]; } $companies_list = Company::lists("name", "id"); return view("pages.sos_requests.create", compact("users_list", "companies_list")); }