app/Http/Controllers/Tutor/MyProfileController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $myUser = Auth::User();
        $states = State::all();
        $countries = Country::all();
        $data = [
            'myuser'    => $myUser,
            'states'    => $states,
            'countries' => $countries
        ];
        return view('tutor.myprofile.index')->with('data', $data);
    }
public function index ( ) { $ myUser = Auth :: User ( ) ; $ states = State :: all ( ) ; $ countries = Country :: all ( ) ; $ data = [ 'myuser' => $ myUser , 'states' => $ states , 'countries' => $ countries ] ; return view ( 'tutor.myprofile.index' ) -> with ( 'data' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .