efbe
b815d0396f
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
22 lines
449 B
PHP
22 lines
449 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Spatie\Permission\Models\Permission;
|
|
|
|
class PermissionSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$permission = Permission::updateOrCreate(
|
|
[ 'name' => 'view_dashboard' ],
|
|
[ 'name' => 'view_dashboard' ]
|
|
);
|
|
}
|
|
}
|