예제 #1
0
 /**
  * Гостевая книга
  */
 public function index()
 {
     $page = App::paginate(Setting::get('guestbook_per_page'), Guestbook::count());
     $posts = Guestbook::all(['offset' => $page['offset'], 'limit' => $page['limit'], 'order' => 'created_at desc', 'include' => ['user']]);
     App::view('guestbook.index', compact('posts', 'page'));
 }