for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VueGenerators;
use VueGenerators\Commands\MakeMixin;
use VueGenerators\Commands\MakeComponent;
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
class ServiceProvider extends BaseServiceProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function register()
$this->registerCommands();
}
* Perform post-registration booting of services.
public function boot()
$this->publishes([
__DIR__.'/config.php' => config_path('vue-generators.php'),
], 'config');
* Register Artisan commands.
protected function registerCommands()
$this->app->singleton('command.vueg.component', function ($app) {
return $app[MakeComponent::class];
});
$this->app->singleton('command.vueg.mixin', function ($app) {
return $app[MakeMixin::class];
$this->commands('command.vueg.component');
$this->commands('command.vueg.mixin');