for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Prateekkarki\Laragen;
use Illuminate\Support\ServiceProvider;
use Prateekkarki\Laragen\Commands\Generate;
class LaragenServiceProvider extends ServiceProvider
{
/**
* Run on application loading
*/
public function boot()
$this->publishes([
__DIR__ . '/../config/laragen.php' => config_path('laragen.php')
], 'config');
}
* Run after all boot method completed
public function register()
$this->mergeConfigFrom(
__DIR__ . '/../config/laragen.php',
'laragen'
);
$this->app->bind('command.laragen:make', Generate::class);
$this->commands([
'command.laragen:make',
]);
* To register laragen as first level command. E.g. laragen:generate
*
* @return array
public function provides()
return ['laragen'];