/** * 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->beforeFilter('throttle.comment', ['only' => ['store']]); parent::__construct(); }
/** * Create a new instance. * * @return void */ public function __construct() { $this->setPermissions(['getIndex' => 'admin']); parent::__construct(); }
/** * Create a new instance. * * @param string $path * * @return void */ public function __construct($path) { $this->path = $path; $this->setPermissions(['create' => 'edit', 'store' => 'edit', 'edit' => 'edit', 'update' => 'edit', 'destroy' => 'edit']); parent::__construct(); }
/** * Create a new instance. * * @return void */ public function __construct() { $this->setPermissions(['create' => 'blog', 'store' => 'blog', 'edit' => 'blog', 'update' => 'blog', 'destroy' => 'blog']); parent::__construct(); }