PHP code example of naokioouchi / laravel-circular-detector
1. Go to this page and download the library: Download naokioouchi/laravel-circular-detector library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
naokioouchi / laravel-circular-detector example snippets
// In your AppServiceProvider or a custom ServiceProvider
public function register()
{
$this->app->configure('circular-dependency-detector', function() {
return [
'modules_path' => base_path('src'), // Your custom path
'detection_strategy' => 'namespace',
'namespace_pattern' => 'App\\Domain\\*',
// ... other settings
];
});
}