app/Http/Controllers/Admin/TutorsController.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()
    {
        if (Gate::denies('manage-tutors')) return redirect()->route('admin.tutor.index');
        $data = [
            'states'    => State::all(),
            'countries' => Country::all()
        ];
        return view('admin.tutors.create')->with('data', $data);
    }
public function create ( ) { if ( Gate :: denies ( 'manage-tutors' ) ) return redirect ( ) -> route ( 'admin.tutor.index' ) ; $ data = [ 'states' => State :: all ( ) , 'countries' => Country :: all ( ) ] ; return view ( 'admin.tutors.create' ) -> with ( 'data' , $ data ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .