Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i overwrite views? Not getting it right... #1020

Open
jackkitley opened this issue Feb 16, 2022 · 1 comment
Open

How do i overwrite views? Not getting it right... #1020

jackkitley opened this issue Feb 16, 2022 · 1 comment

Comments

@jackkitley
Copy link

Hello

Im copying an inertia view and copying it to a tenant directory under the views folder. It keeps coming up with a error saying the file isnt available locally. Any help would be great.

Ive checked the project source code and this always returns false for isLocal()...

LoadViews.php
public function load(WebsiteEvent $event) { if ($this->directory()->isLocal()) {

Screenshot 2022-02-16 at 20 31 05

Screenshot 2022-02-16 at 20 29 27
Screenshot 2022-02-16 at 20 29 10

@matthewmnewman
Copy link

matthewmnewman commented Jun 9, 2022

I am running into the same issue when updating from Laravel 8 > 9.

It seems it is related to Laravel 9 migrating from 1.x to 3.x of the Flysystem.

I am going to debug this as it seems it is related to anything related to the storage folder (routes,views,media etc).

Update

Looking into this further I can see that the issue is indeed related to the Flystytem package. In verison 3x they removed the ability to retrieve the Prefix getAdapter()->getPathPrefix() so it is unable to locate the storage folder local path. I will have a little tinker when I get some time to try and resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants