Ejemplo n.º 1
0
 public function __construct(AuthorableInterface $authorable, $resources)
 {
     $resource_types = $this->extractResourceTypes($resources);
     $previous = Privilege::where('admin_id', $authorable->getKey())->whereIn('resource_type', $resource_types)->delete();
 }