for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cherrypulp\LaravelPackageGenerator;
use Cherrypulp\LaravelPackageGenerator\Commands\PackageNew;
use Cherrypulp\LaravelPackageGenerator\Commands\PackageRemove;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
const CONFIG_PATH = __DIR__.'/../config/laravel-package-generator.php';
public function boot()
$this->publishes([
self::CONFIG_PATH => config_path('laravel-package-generator.php'),
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
self::CONFIG_PATH => /** @scrutinizer ignore-call */ config_path('laravel-package-generator.php'),
], 'config');
if ($this->app->runningInConsole()) {
$this->commands([
PackageNew::class,
PackageRemove::class,
]);
}
public function register()
$this->mergeConfigFrom(
self::CONFIG_PATH,
'laravel-package-generator'
);