app/Http/Controllers/Student/TutorsController.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();
        return view('students.tutors.index') -> with('assignments', $myuser->assignments()->get());
    }
public function index ( ) { $ myuser = Auth :: User ( ) ; return view ( 'students.tutors.index' ) -> with ( 'assignments' , $ myuser -> assignments ( ) -> get ( ) ) ; }
Display a listing of the resource.
Display a listing of the resource .