/**
  * @param null $perPage
  * @param bool $all
  * @return mixed
  */
 public function paginate($page = 1, $limit = 10, $all = false)
 {
     return $this->article->paginate($page, $limit, $all);
 }
예제 #2
0
 /**
  * @param $view
  */
 public function compose($view)
 {
     $articles = $this->article->getLastArticle(3);
     $view->with('articles', $articles);
 }