function index() { $terbaru = Book::orderBy('BookID', 'desc')->skip(0)->take(6)->get(); $data['categories'] = $this->categories; $data['terbaru'] = $terbaru; if (Auth::member() != null) { $data['member'] = Auth::member(); } $this->view->render('home', $data); $this->view->data = "asu"; }
public function detail($book) { $book = Book::find($book); $data['book'] = $book; $data['categories'] = Category::all(); if (Auth::member() != null) { $data['member'] = Auth::member(); } $this->view->render('member/detail', $data); }