for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace jlourenco\support;
use Illuminate\Support\ServiceProvider;
use jlourenco\support\Commands\SetupCommand;
class supportServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
}
* Register any package services.
public function register()
$this->prepareResources();
$this->registerCommands();
* Prepare the package resources.
protected function prepareResources()
// Publish a config file
$this->publishes([
__DIR__ . '/config' => base_path('/config')
], 'config');
* Register the commands.
protected function registerCommands()
$this->registerSetupCommand();
* Register the 'jlourenco:setup' command.
protected function registerSetupCommand()
$this->app->singleton('command.jlourenco:setup', function($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new SetupCommand();
});
$this->commands('command.jlourenco:setup');
* Get the services provided by the provider.
* @return array
public function provides()
return [
'command.jlourenco:setup'
];
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.