app/Http/Controllers/ProjectController.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()
    {
        $data = Post::first()->paginate(5);
        return view('posts.index', compact('data'))->with('i', (request()->input('page', 1) - 1) * 5);
    }
public function index ( ) { $ data = Post :: first ( ) -> paginate ( 5 ) ; return view ( 'posts.index' , compact ( 'data' ) ) -> with ( 'i' , ( request ( ) -> input ( 'page' , 1 ) - 1 ) * 5 ) ; }
Display a listing of the resource.
Display a listing of the resource .
//