示例#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();
 }
示例#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();
 }
示例#3
0
 /**
  * Create a new instance.
  *
  * @param \GrahamCampbell\Throttle\Throttlers\ThrottlerInterface $throttler
  *
  * @return void
  */
 public function __construct(ThrottlerInterface $throttler)
 {
     $this->throttler = $throttler;
     $this->setPermissions(['store' => 'user', 'update' => 'mod', 'destroy' => 'mod']);
     $this->middleware(Ajax::class);
     $this->beforeFilter('throttle.comment', ['only' => ['store']]);
     parent::__construct();
 }
示例#4
0
 /**
  * 创建一个新的实例。
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     //
 }
示例#5
0
 /**
  * Create a new instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->setPermissions(['create' => 'content', 'store' => 'content', 'edit' => 'content', 'update' => 'content', 'destroy' => 'content']);
     parent::__construct();
 }
示例#6
0
 /**
  * Create a new instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->setPermissions(['getHistory' => 'user', 'getProfile' => 'user', 'deleteProfile' => 'user', 'patchDetails' => 'user', 'patchPassword' => 'user']);
     parent::__construct();
 }
示例#7
0
 /**
  * Create a new instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->setPermissions(['getIndex' => 'admin']);
     parent::__construct();
 }
示例#8
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();
 }