Airship\Cabin\Bridge\Landing\AdminOnly::airshipLand PHP Method

airshipLand() public method

This function is called after the dependencies have been injected by AutoPilot. Think of it as a user-land constructor.
public airshipLand ( )
        public function airshipLand()
        {
            parent::airshipLand();
            if (!$this->isSuperUser()) {
                \Airship\redirect($this->airship_cabin_prefix);
            }
        }

Usage Example

Esempio n. 1
0
 /**
  * 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->perms = $this->blueprint('Permissions');
     $this->users = $this->blueprint('UserAccounts');
     $this->storeLensVar('active_submenu', ['Admin', 'Crew']);
     $this->storeLensVar('active_link', 'bridge-link-admin-crew-perms');
 }
All Usage Examples Of Airship\Cabin\Bridge\Landing\AdminOnly::airshipLand
AdminOnly