for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Tonysm\LaravelParatest;
use Illuminate\Support\ServiceProvider;
use Tonysm\LaravelParatest\Console\DbCreateCommand as DbCreateCLICommand;
use Tonysm\LaravelParatest\Console\DbReCreateCommand as DbReCreateCLICommand;
use Tonysm\LaravelParatest\Console\DbDropCommand as DbDropCLICommand;
class LaravelParatestServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/config.php' => config_path('paratest.php'),
], 'config');
// Registering package commands.
$this->commands([
DbCreateCLICommand::class,
DbReCreateCLICommand::class,
DbDropCLICommand::class,
]);
}
* Register the application services.
public function register()
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'paratest');
// Register the main class to use with the facade
$this->app->singleton('laravel-paratest', function () {
return new LaravelParatest;
});