public function seed(array $seeds)
    {
        foreach ($seeds as $seed) {
            /** @var  \Arcanesoft\Auth\Models\PermissionsGroup  $group */
            $group       = PermissionsGroup::create($seed['group']);
            $permissions = array_map(function ($permission) {
                return new Permission($permission);
            }, $seed['permissions']);

            $group->permissions()->saveMany($permissions);
        }
    }
public function seed(array $seeds)
    {
        foreach ($seeds as $seed) {
            /** @var  \Arcanesoft\Auth\Models\PermissionsGroup  $group */
            $group       = PermissionsGroup::create($seed['group']);
            $permissions = array_map(function ($permission) {
                return new Permission($permission);
            }, $seed['permissions']);

            $group->permissions()->saveMany($permissions);
        }
    }
public function seed ( array $ seeds ) { foreach ( $ seeds as $ seed ) { /** @var  \Arcanesoft\Auth\Models\PermissionsGroup  $group */ $ group = PermissionsGroup :: create ( $ seed [ 'group' ] ) ; $ permissions = array_map ( function ( $ permission ) { return new Permission ( $ permission ) ; } , $ seed [ 'permissions' ] ) ; $ group -> permissions ( ) -> saveMany ( $ permissions ) ; } }
Seed permissions.

@param  array  $seeds
Seed permissions .