app/Http/Controllers/NoteController.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()
    {
        $notes = Auth::user()->notes;
        return NoteResource::collection($notes);
    }
public function index ( ) { $ notes = Auth :: user ( ) -> notes ; return NoteResource :: collection ( $ notes ) ; }
Display a listing of the resource.
Display a listing of the resource .