for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LaravelPropertyBag;
use Illuminate\Support\ServiceProvider as BaseProvider;
class ServiceProvider extends BaseProvider
{
/**
* Register bindings in the container.
*
* @return void
*/
public function register()
$this->registerCommands();
}
* Register any other events for your application.
public function boot()
$this->publishes([
__DIR__.'/Migrations/' => database_path('migrations'),
], 'migrations');
* Register Artisan commands.
protected function registerCommands()
$this->app->singleton('command.pbag.make', function ($app) {
return $app['LaravelPropertyBag\Commands\PublishSettingsConfig'];
});
$this->app->singleton('command.pbag.rules', function ($app) {
return $app['LaravelPropertyBag\Commands\PublishRulesFile'];
$this->commands('command.pbag.make');
$this->commands('command.pbag.rules');