Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

581 B
Raw Blame
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class Seeder extends Command
{
    protected $signature = 'start:seeder';

    protected $description = 'Start Seeder';

    public function handle()
    {
        if (config('constants.seeder.is_seeder_enabled')) {
            $this->info('Seeder is enabled on this server.');
            $this->call('db:seed', ['--class' => 'ProductionSeeder', '--force' => true]);
            exit(0);
        } else {
            $this->info('Seeder is disabled on this server.');
            exit(0);
        }
    }
}