/** * This function is called after the dependencies have been injected by * AutoPilot. Think of it as a user-land constructor. */ public function airshipLand() { parent::airshipLand(); $this->storeLensVar('showmenu', true); if (!$this->isLoggedIn()) { // You need to log in first! \Airship\redirect($this->airship_cabin_prefix); } elseif (!$this->can('read') && !$this->can('index')) { // Sorry, you can't read this? \Airship\redirect($this->airship_cabin_prefix . '/error/?' . \http_build_query(['error' => '403 Forbidden'])); } }
/** * This function is called after the dependencies have been injected by * AutoPilot. Think of it as a user-land constructor. */ public function airshipLand() { parent::airshipLand(); $this->files = $this->blueprint('PublicFiles'); }
/** * This function is called after the dependencies have been injected by * AutoPilot. Think of it as a user-land constructor. */ public function airshipLand() { parent::airshipLand(); $this->blog = $this->blueprint('Blog'); }