Exemplo n.º 1
0
 /**
  * Create a new instance.
  *
  * @param \GrahamCampbell\Throttle\Throttlers\ThrottlerInterface $throttler
  *
  * @return void
  */
 public function __construct(ThrottlerInterface $throttler)
 {
     $this->throttler = $throttler;
     $this->beforeFilter('throttle.activate', ['only' => ['getActivate']]);
     $this->beforeFilter('throttle.resend', ['only' => ['postResend']]);
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * Create a new instance.
  *
  * @param \GrahamCampbell\Throttle\Throttlers\ThrottlerInterface $throttler
  *
  * @return void
  */
 public function __construct(ThrottlerInterface $throttler)
 {
     $this->throttler = $throttler;
     $this->setPermissions(['getLogout' => 'user']);
     $this->beforeFilter('throttle.login', ['only' => ['postLogin']]);
     $this->middleware(SentryThrottle::class, ['only' => ['postLogin']]);
     parent::__construct();
 }
Exemplo n.º 3
0
 /**
  * Create a new instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     if ($this->edits) {
         $this->middleware(Edit::class, ['only' => $this->edits]);
     }
     if ($this->blogs) {
         $this->middleware(Blog::class, ['only' => $this->blogs]);
     }
 }
Exemplo n.º 4
0
 /**
  * Create a new instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->setPermissions(['getHistory' => 'user', 'getProfile' => 'user', 'deleteProfile' => 'user', 'patchDetails' => 'user', 'patchPassword' => 'user']);
     parent::__construct();
 }
Exemplo n.º 5
0
 /**
  * Create a new instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->setPermissions(['index' => 'mod', 'create' => 'admin', 'store' => 'admin', 'show' => 'mod', 'edit' => 'admin', 'update' => 'admin', 'suspend' => 'mod', 'reset' => 'admin', 'resend' => 'admin', 'destroy' => 'admin']);
     parent::__construct();
 }
Exemplo n.º 6
0
 /**
  * Create a new instance.
  *
  * @param \GrahamCampbell\Throttle\Throttlers\ThrottlerInterface $throttler
  *
  * @return void
  */
 public function __construct(ThrottlerInterface $throttler)
 {
     $this->throttler = $throttler;
     $this->beforeFilter('throttle.register', ['only' => ['postRegister']]);
     parent::__construct();
 }