Mini Shell

Direktori : /home/funerariamayer/api/database/seeders/
Upload File :
Current File : /home/funerariamayer/api/database/seeders/GroupSeeder.php

<?php

namespace Database\Seeders;

use App\Models\Group;
use Illuminate\Database\Seeder;

class GroupSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        if (config('app.env') === 'production') {
            return;
        }
        Group::factory()->count(10)->create();
    }
}

Zerion Mini Shell 1.0