database/seeders/RoleSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $role = [
            [
                'title'      => 'Super Admin', 
                'created_at' => '2022-04-22 00:00:00',
                'updated_at' => '2022-04-22 00:00:00',
            ],
            [
                'title'      => 'Admin', 
                'created_at' => '2022-04-22 00:00:00',
                'updated_at' => '2022-04-22 00:00:00',
            ],
            [
                'title'      => 'Staff Hospital', 
                'created_at' => '2022-04-22 00:00:00',
                'updated_at' => '2022-04-22 00:00:00',
            ],
            [
                'title'      => 'Doctor', 
                'created_at' => '2022-04-22 00:00:00',
                'updated_at' => '2022-04-22 00:00:00',
            ],
            [
                'title'      => 'Patient', 
                'created_at' => '2022-04-22 00:00:00',
                'updated_at' => '2022-04-22 00:00:00',
            ],
        ];
        Role::insert($role);
    }
public function run ( ) { $ role = [ [ 'title' => 'Super Admin' , 'created_at' => '2022-04-22 00:00:00' , 'updated_at' => '2022-04-22 00:00:00' , ] , [ 'title' => 'Admin' , 'created_at' => '2022-04-22 00:00:00' , 'updated_at' => '2022-04-22 00:00:00' , ] , [ 'title' => 'Staff Hospital' , 'created_at' => '2022-04-22 00:00:00' , 'updated_at' => '2022-04-22 00:00:00' , ] , [ 'title' => 'Doctor' , 'created_at' => '2022-04-22 00:00:00' , 'updated_at' => '2022-04-22 00:00:00' , ] , [ 'title' => 'Patient' , 'created_at' => '2022-04-22 00:00:00' , 'updated_at' => '2022-04-22 00:00:00' , ] , ] ; Role :: insert ( $ role ) ; }
Run the database seeds.
Run the database seeds .
// 1 // 2 // 3 // 4 // 5