Files
backend/database/seeders/PermissionSeeder.php

45 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PermissionSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('permissions')->insert([
[
'id' => 1,
'name' => 'manage_users',
'name_fa' => 'مدیریت کاربران',
'guard_name' => 'api',
'created_at' => now(),
'updated_at' => now()
],
[
'id' => 2,
'name' => 'manage_roles',
'name_fa' => 'مدیریت نقش ها',
'guard_name' => 'api',
'created_at' => now(),
'updated_at' => now()
],
[
'id' => 3,
'name' => 'manage_calls',
'name_fa' => 'مدیریت تماس ها',
'guard_name' => 'api',
'created_at' => now(),
'updated_at' => now()
]
]);
}
}