Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [qjbpthzgsh]:public_html$ composer du
- Cannot create cache directory /home/202967.cloudwaysapps.com/qjbpthzgsh/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
- Cannot create cache directory /home/202967.cloudwaysapps.com/qjbpthzgsh/.composer/cache/files/, or directory is not writable. Proceeding without cache
- Generating optimized autoload files> Illuminate\Foundation\ComposerScripts::postAutoloadDump
- > @php artisan package:discover --ansi
- PHP Warning: Uncaught ErrorException: require(C:\apps\landlord\routes/breadcrumbs.php): failed to open stream: No such file or directory in /home/202967.cloudwaysapps.com/qjbpthzgsh/public_html/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php:92
- Stack trace:
- #0 /home/202967.cloudwaysapps.com/qjbpthzgsh/public_html/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php(92): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'require(C:\\apps...', '/home/202967.cl...', 92, Array)
- #1 /home/202967.cloudwaysapps.com/qjbpthzgsh/public_html/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php(92): require()
- #2 /home/202967.cloudwaysapps.com/qjbpthzgsh/public_html/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php(61): DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider->registerBreadcrumbs()
- #3 [internal function]: DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider->boot()
- #4 /home/202967.cloudwaysapps.com in /home/202967.cloudwaysapps.com/qjbpthzgsh/public_html/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php on line 92
- PHP Fatal error: DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider::registerBreadcrumbs(): Failed opening required 'C:\apps\landlord\routes/breadcrumbs.php' (include_path='.:/usr/share/php') in /home/202967.cloudwaysapps.com/qjbpthzgsh/public_html/vendor/davejamesmiller/laravel-breadcrumbs/src/BreadcrumbsServiceProvider.php on line 92
- In BreadcrumbsServiceProvider.php line 92:
- DaveJamesMiller\Breadcrumbs\BreadcrumbsServiceProvider::registerBreadcrumbs
- (): Failed opening required 'C:\apps\landlord\routes/breadcrumbs.php' (incl
- ude_path='.:/usr/share/php')
- BreadcrumbsServiceProvider.php:
- <?php
- namespace DaveJamesMiller\Breadcrumbs;
- use Illuminate\Support\ServiceProvider;
- /**
- * The Laravel service provider, which registers, configures and bootstraps the package.
- */
- class BreadcrumbsServiceProvider extends ServiceProvider
- {
- /**
- * Indicates if loading of the provider is deferred.
- *
- * @var bool
- */
- protected $defer = true;
- /**
- * Get the classes provided for deferred loading.
- *
- * @return array
- */
- public function provides(): array
- {
- return [BreadcrumbsManager::class];
- }
- /**
- * Register the service provider.
- *
- * @return void
- */
- public function register(): void
- {
- // Load the default config values
- $configFile = __DIR__ . '/../config/breadcrumbs.php';
- $this->mergeConfigFrom($configFile, 'breadcrumbs');
- // Publish the config/breadcrumbs.php file
- $this->publishes([$configFile => config_path('breadcrumbs.php')], 'config');
- // Register Manager class singleton with the app container
- $this->app->singleton(BreadcrumbsManager::class, config('breadcrumbs.manager-class'));
- // Register Generator class so it can be overridden
- $this->app->bind(BreadcrumbsGenerator::class, config('breadcrumbs.generator-class'));
- // Register 'breadcrumbs::' view namespace
- $this->loadViewsFrom(__DIR__ . '/../views/', 'breadcrumbs');
- }
- /**
- * Bootstrap the application events.
- *
- * @return void
- */
- public function boot(): void
- {
- // Load the routes/breadcrumbs.php file
- $this->registerBreadcrumbs();
- }
- /**
- * Load the routes/breadcrumbs.php file (if it exists) which registers available breadcrumbs.
- *
- * This method can be overridden in a child class. It is called by the boot() method, which Laravel calls
- * automatically when bootstrapping the application.
- *
- * @return void
- */
- public function registerBreadcrumbs(): void
- {
- // Load the routes/breadcrumbs.php file, or other configured file(s)
- $files = config('breadcrumbs.files');
- if (! $files) {
- return;
- }
- // If it is set to the default value and that file doesn't exist, skip loading it rather than causing an error
- if ($files === base_path('routes/breadcrumbs.php') && ! is_file($files)) {
- return;
- }
- // Support both Breadcrumbs:: and $breadcrumbs-> syntax by making $breadcrumbs variable available
- /** @noinspection PhpUnusedLocalVariableInspection */
- $breadcrumbs = $this->app->make(BreadcrumbsManager::class);
- // Support both a single string filename and an array of filenames (e.g. returned by glob())
- foreach ((array) $files as $file) {
- require $file;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement