public function before() { if ($this->request->param('slug') and $this->request->action != 'page') { $this->request->action = 'post'; } parent::before(); }
public function before() { parent::before(); // Check if the current user is an administrator if (!\Auth::member(6)) { \Messages::info(__('user.login.permission-denied')); \Response::redirect(); } }