for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mtolhuys\LaravelSchematics;
use Illuminate\Support\ServiceProvider;
use Mtolhuys\LaravelSchematics\Console\Commands\Install;
class LaravelSchematicsServiceProvider extends ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->commands([
Install::class,
]);
}
$this->loadRoutesFrom(__DIR__.'/routes.php');
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'schematics');
$this->publishes([
__DIR__.'/../config/schematics.php' => config_path('schematics.php'),
__DIR__.'/../dist' => public_path('vendor/schematics'),
__DIR__.'/../resources/images/plumb-arrows' => public_path('vendor/schematics/images'),
__DIR__.'/../resources/images/icons' => public_path('vendor/schematics/images'),
], 'public');
* Register any package services.
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/schematics.php', 'schematics');