app/Http/Controllers/Admin/SessionsController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Session  $session
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Session $session)
    {
        $assignments = Assignment::all();
        $data = [
            'session'       => $session,
            'assignments'   => $assignments
        ];
        return view('admin.sessions.edit')->with('data', $data);
    }
public function edit ( Session $ session ) { $ assignments = Assignment :: all ( ) ; $ data = [ 'session' => $ session , 'assignments' => $ assignments ] ; return view ( 'admin.sessions.edit' ) -> with ( 'data' , $ data ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .