Open pocketarc opened 3 months ago
It's true, thank you!
Solved issue by doing after install this package:
composer require illuminate/view:11.7.0
They moved away from grabbing the container via app()
towards Illuminate/Container (Container::getInstance()
), which resulted in this breaking.
I'm not sure if adding the Container is necessary, or if we'd have to switch it out with one of our own?
Should probably add the requirement for illuminate/view into the README at the very least, no? Right now the out-of-box installation experience is a broken library with an odd error.
Not even into the README - into the composer.json. Just change the version range allowed for this library. I might even raise a PR for that here, as a temporary measure.
Same goes for 10.48.11 and up.
Thanks for the issue, please resolve
Its work for me
I'm on view v10.48.20
ended up doing something like this to get it working
use Jenssegers\Blade\Blade;
use Jenssegers\Blade\Container;
...
$container = new Container();
Container::setInstance($container);
$this->blade = new Blade(
$this->getView()->getViewsDir(),
storage_path('views'),
$container,
);
I'm on view v10.48.20
ended up doing something like this to get it working
use Jenssegers\Blade\Blade; use Jenssegers\Blade\Container; ... $container = new Container(); Container::setInstance($container); $this->blade = new Blade( $this->getView()->getViewsDir(), storage_path('views'), $container, );
Thanks whis work for me on blade v11.25.0
With illuminate/view 11.7, it works fine. That's the current workaround, just require
"illuminate/view": "~11.7.0"
.illuminate/view 11.10:
illuminate/view 11.9:
illuminate/view 11.8: