adminarchitect / core

AdminArchitect - Active Admin for Laravel
http://adminarchitect.com
MIT License
211 stars 66 forks source link

Problem with DaveJamesMiller\Breadcrumbs\Manager #47

Closed porcelanosa closed 5 years ago

porcelanosa commented 5 years ago

This error after install via composer

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
In Facade.php line 237:
Call to undefined method DaveJamesMiller\Breadcrumbs\Manager::for()

if we try to install new version DaveJamesMiller\Breadcrumbs\Manager we get this conflict


composer require davejamesmiller/laravel-breadcrumbs:5.x
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1

endihunter commented 5 years ago

@porcelanosa it seems that you try to use the latest version of laravel-breadcrumbs, which is not back compatible with version 3.x

porcelanosa commented 5 years ago

I try the latest version after getting the error I showed in the first fragment of the console log.

Call to undefined method DaveJamesMiller\Breadcrumbs\Manager::for()

endihunter commented 5 years ago

@porcelanosa according to davejamesmiller/laravel-breadcrumbs sources the method for is specific for versions > 3 and the error says this as well: Call to undefined method DaveJamesMiller\Breadcrumbs\Manager::for()

please make sure you use the right version of laravel-breadcrumbs or at least use the alias method register