pintu2/database/seeders/PermissionSeeder.php

22 lines
449 B
PHP
Raw Normal View History

2024-03-02 18:06:48 +07:00
<?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' ]
);
}
}