for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Reedware\LaravelBlueprints;
use Illuminate\Support\ServiceProvider;
class BlueprintsServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
* Register the service provider.
* @return void
public function register()
//
}
* Bootstrap the application events.
public function boot()
// Publish the Configuration File
$this->publishConfigurationFile();
* Publishes the Configuration File.
protected function publishConfigurationFile()
// Determine the Local Configuration Path
$source = $this->getLocalConfigurationPath();
// Determine the Application Configuration Path
$destination = $this->getApplicationConfigPath();
$this->publishes([$source => $destination], 'config');
* Returns the Path to the Configuration File within this Package.
* @return string
protected function getLocalConfigurationPath()
return __DIR__ . '/../config/blueprints.php';
* Returns the Path to the Configuration File within the Application.
protected function getApplicationConfigPath()
return config_path('blueprints.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
return /** @scrutinizer ignore-call */ config_path('blueprints.php');
* Get the services provided by the provider.
* @return array
public function provides()
return [
];