feat: add app and database modules
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class RolesTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('roles')->delete();
|
||||
|
||||
\DB::table('roles')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'Developer',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:01:13',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => 'User',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:01:13',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => 'Administrator',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:02:18',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => 2,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user