%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/kpk/api/database/seeds/
Upload File :
Create Path :
Current File : /var/www/html/kpk/api/database/seeds/RolesTableSeeder.php

<?php

use Illuminate\Database\Seeder;

class RolesTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        \App\Models\Role::query()
            ->create([
                'slug' => 'admin',
                'name' => 'Administrator'
            ]);

        \App\Models\Role::query()
            ->create([
                'slug' => 'protocol',
                'name' => 'Protocol'
            ]);
    }
}

Zerion Mini Shell 1.0