Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Laravel IDE helper command
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class DevCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'dev';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Run bunch of useful commands for devs';
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$this->call('ide-helper:generate');
$this->call('ide-helper:meta');
$this->call('ide-helper:models', ['--nowrite' => 'No']);
}
/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments()
{
return [];
}
/**
* Get the console command options.
*
* @return array
*/
protected function getOptions()
{
return [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.