Skip to content

Instantly share code, notes, and snippets.

@bluemanos
Created August 17, 2015 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluemanos/479ae8259b28643a4b11 to your computer and use it in GitHub Desktop.
Save bluemanos/479ae8259b28643a4b11 to your computer and use it in GitHub Desktop.
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