29 lines
688 B
PHP
29 lines
688 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class PermissionsSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
// album:list-gallery = controls if the album is visible in the gallery
|
|
DatabaseSeeder::createOrUpdate('permissions', [
|
|
'section' => 'album',
|
|
'description' => 'list-gallery',
|
|
'is_default' => true
|
|
]);
|
|
|
|
// album:view = controls if the album can be viewed
|
|
DatabaseSeeder::createOrUpdate('permissions', [
|
|
'section' => 'album',
|
|
'description' => 'view',
|
|
'is_default' => true
|
|
]);
|
|
}
|
|
}
|