/** * Get recent posts. * * @return EntryCollection */ public function getRecent($limit = null) { return $this->model->with(['category'])->orderBy('created_at', 'DESC')->paginate($limit); }