Log1x / crumb

A simple breadcrumb package for Sage 10.
https://github.com/log1x/crumb
MIT License
38 stars 8 forks source link

Installation in sage / bedrock ? #5

Closed Specialistinwebsites closed 2 years ago

Specialistinwebsites commented 2 years ago

Apologies in advance for any misunderstandings. I'm trying to install this to my Sage10 app, but can't seem to get it to work.

Installing it to sage gives me the option to release the config file, but gives a "base_path" error.

Call to undefined function Illuminate\Foundation\Console\base_path()

Installing it to bedrock lets phpstorm recognize the class "Log1x\Crumb\Facades\Crumb;" in "View/Components/Breadcrumb.php", but gives an error when compiling;

Class 'Crumb' not found

Any help would be appriciated!

Log1x commented 2 years ago

This should work without any issues on the latest version of Acorn.

slackday commented 2 years ago

Acorn 2.0.5 seems to be the latest version right now and it gives the same error. What causes it?

Also running wp acorn vendor:publish --provider="Log1x\Crumb\CrumbServiceProvider"

says

No publishable resources for tag [].
Publishing complete.
turpoint commented 2 years ago

Before publishing the CrumbServiceProvider, run wp acorn optimize:clear. Worked for me.

slackday commented 2 years ago

@turpoint that did work. Thanks a lot!