app/Http/Controllers/Admin/AssignmentsController.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()
    {
        $data = [
            'tutors'    => Role::find(config('global.TUTOR_ROLE_ID'))->users()->get(),
            'students'  => Role::find(config('global.STUDENT_ROLE_ID'))->users()->get(),
            'subjects'  => Subject::all(),
        ];
        return view('admin.assignments.create')->with('data', $data);
    }
public function create ( ) { $ data = [ 'tutors' => Role :: find ( config ( 'global.TUTOR_ROLE_ID' ) ) -> users ( ) -> get ( ) , 'students' => Role :: find ( config ( 'global.STUDENT_ROLE_ID' ) ) -> users ( ) -> get ( ) , 'subjects' => Subject :: all ( ) , ] ; return view ( 'admin.assignments.create' ) -> with ( 'data' , $ data ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .