pages = $paginateService; } public function start() { $status = session('handle') !== null ? true : false; $result = []; if ($status) { $result = $this->pages->getPage(1, 4); } return view('back.start', [ "status" => $status, "result" => $result, "title" => "Start" ]); } public function book($pageFilter = 'all', $pageNum = '1') { $status = session('handle') !== null ? true : false; $result = []; if ($status) { $result = $this->pages->getPage($pageNum, 4, $pageFilter); } return view('back.book', [ "status" => $status, "result" => $result, "currentPage" => $pageNum, "title" => "Pages" ]); } }