pintu2/database/seeders/PermissionSeeder.php
efbe b815d0396f
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
add spatie laravel roles
2024-03-02 18:06:48 +07:00

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' ]
);
}
}