for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ElfSundae\Support;
use Illuminate\Support\ServiceProvider;
class SupportServiceProvider extends ServiceProvider
{
/**
* Bootstrap the service provider.
*
* @return void
*/
public function boot()
$this->registerCommands();
}
* Register the commands for the application.
protected function registerCommands()
if ($this->app->runningInConsole()) {
$this->commands([
Console\IdeHelperGenerateCommand::class,
]);
* Register the service provider.
public function register()
$this->registerSupport();
* Register support singleton.
protected function registerSupport()
$this->app->singleton('support', function ($app) {
return new Support($app);
});
$this->app->alias('support', Support::class);