src/Conductors/ForbidsAbilities.php
protected function forbidAbilitiesToEveryone(array $ids)
    {
        $attributes = Models::scope()->getAttachAttributes() + ['forbidden' => true];

        $records = array_map(function ($id) use ($attributes) {
            return ['ability_id' => $id] + $attributes;
        }, $ids);

        Models::query('permissions')->insert($records);
    }
protected function forbidAbilitiesToEveryone(array $ids)
    {
        $attributes = Models::scope()->getAttachAttributes() + ['forbidden' => true];

        $records = array_map(function ($id) use ($attributes) {
            return ['ability_id' => $id] + $attributes;
        }, $ids);

        Models::query('permissions')->insert($records);
    }
protected function forbidAbilitiesToEveryone ( array $ ids ) { $ attributes = Models :: scope ( ) -> getAttachAttributes ( ) + [ 'forbidden' => true ] ; $ records = array_map ( function ( $ id ) use ( $ attributes ) { return [ 'ability_id' => $ id ] + $ attributes ; } , $ ids ) ; Models :: query ( 'permissions' ) -> insert ( $ records ) ; }
Forbid the given abilities for everyone.

@param  array  $ids
@return void
Forbid the given abilities for everyone .