model = $user; parent::__construct(); } /** * Show user's list. * * @param string $slug * * @return response */ protected function index() { $users = $this->model->all(); return $this->theme->of('package::public.user.index', compact('users'))->render(); } /** * Show user. * * @param string $slug * * @return response */ protected function show($slug) { $user = $this->model->findBySlug($slug); return $this->theme->of('package::public.user.show', compact('user'))->render(); } }