/** * AccountsController constructor. */ public function __construct() { parent::__construct(); // is the logged in account allowed to execute an action on the account $this->middleware('checkaccount:Account', ['except' => ['search', 'index', 'create', 'store', 'export', 'logo']]); // method that only may be executed by the systemaccount $this->middleware('checksystemaccount', ['only' => ['create', 'store']]); }
public function __construct() { parent::__construct('createDynamicACL'); }
/** * AnalyticsController constructor. */ public function __construct() { parent::__construct(); }
/** * BrandsController constructor. */ public function __construct() { parent::__construct(); // is the logged in account allowed to execute an action on the Brand $this->middleware('checkaccount:Brand', ['except' => ['search', 'index', 'create', 'store', 'export', 'logo']]); }
/** * EvidenceController constructor. */ public function __construct() { parent::__construct(); // Is the logged in account allowed to execute an action on the Evidence $this->middleware('checkaccount:Evidence'); }