for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gabievi\Promocodes;
use Illuminate\Support\ServiceProvider;
class PromocodesServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
$this->publishes([
__DIR__ . '/../config/promocodes.php' => config_path('promocodes.php'),
]);
__DIR__ . '/../migrations' => database_path('migrations'),
], 'migrations');
}
* Register the application services.
public function register()
$this->mergeConfigFrom(
__DIR__ . '/../config/promocodes.php', 'promocodes'
);
$this->app->singleton('promocodes', 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 Promocodes();
});
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.