public function getIndex() $posts = Post::orderBy('id','desc')->paginate(10); $this->layout->main = View::make('home')->nest('content','index',compact('posts'));据我所
我正在使用find方法在Laravel中获取一些数据,并且只获取我想要的id:但是,如果我试图通过Model::find($my_ids)->paginate(10)分页,它将引发错误:Call to undefined method Illuminate\Database\Eloquent如何在使用分页的同时只从数据库中获得