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

View override #50

Closed
samo9789 opened this issue Jul 9, 2019 · 3 comments
Closed

View override #50

samo9789 opened this issue Jul 9, 2019 · 3 comments
Assignees
Labels

Comments

@samo9789
Copy link

samo9789 commented Jul 9, 2019

I’m using vanilo in a project I’m working on even though I realise you do not have the 1.0 yet.
I’ve had to modify a few of the views in vendor/vanilo/framework/resources/views and I was wondering if you envisioned a system to override some of the views or controllers in the framework properly ?
SO I could have modified views in my main folder and leave everything untouched in vendor.
Thanks for your help and for this very promising project for the Laravel community

@fulopattila122
Copy link
Member

Fortunately, Laravel supports this out of the box, see Overriding Package Views.

So basically what you have to do is to copy the necessary view from the vendor folder from your app's resources/views/vendor/ folder and there you can use the overridden version.

@samo9789
Copy link
Author

samo9789 commented Jul 9, 2019

Thanks for your quick answer, works perfectly.
Actually, I also need some adjustments in a controller. Can the same be done for controllers ? I will ask in a separate questions so others can find it later.

@samo9789 samo9789 closed this as completed Jul 9, 2019
@samo9789 samo9789 reopened this Jul 9, 2019
@samo9789
Copy link
Author

samo9789 commented Jul 11, 2019 via email

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

No branches or pull requests

2 participants