app/Http/Controllers/FbookController.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()
    {
$fbooks=auth()->user()->fbooks()->paginate(4);
        return view('fbooks.index')->with('fbooks',$fbooks);
    }
public function index ( ) { $ fbooks = auth ( ) -> user ( ) -> fbooks ( ) -> paginate ( 4 ) ; return view ( 'fbooks.index' ) -> with ( 'fbooks' , $ fbooks ) ; }
Display a listing of the resource.
Display a listing of the resource .