mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
47 lines
922 B
PHP
47 lines
922 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Composer\Composer;
|
|
use Composer\Factory;
|
|
use Composer\IO\NullIO;
|
|
use Composer\Installer;
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Support\Facades\Artisan;
|
|
use Symfony\Component\Console\Input\ArrayInput;
|
|
use Composer\Console\Application;
|
|
|
|
class DemoMode extends Command
|
|
{
|
|
|
|
protected $name = 'ninja:demo-mode';
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'ninja:demo-mode';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Setup demo mode';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
set_time_limit(0);
|
|
|
|
Artisan::call('migrate:fresh');
|
|
Artisan::call('db:seed');
|
|
Artisan::call('db:seed --class=RandomDataSeeder');
|
|
|
|
}
|
|
}
|