app/Http/Controllers/Admin/SessionsController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $assignments = Assignment::all();
        $durations = $this->getAllDurations();
        $data = [
            'assignments'       => $assignments,
            'session_durations' => $durations,
        ];
        return view('admin.sessions.create')->with('data', $data);
    }
public function create ( ) { $ assignments = Assignment :: all ( ) ; $ durations = $ this -> getAllDurations ( ) ; $ data = [ 'assignments' => $ assignments , 'session_durations' => $ durations , ] ; return view ( 'admin.sessions.create' ) -> with ( 'data' , $ data ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .