Support the ongoing development of →
posted 9 years ago
Last updated 2 years ago.

Laravel loads the views from what is defined in the config/view.php


True, but just like your config files in your package there has to be a way to say in my service provider where my package views are located beceause I'm not using the workbench command I have a custom directory structure.


I've never tried views and custom packages together. You might wanna checkout the page. I think that's what you're looking for.

public function boot()
    $this->loadViewsFrom(__DIR__.'/path/to/views', 'courier');

True and that works fine I have used it myself but that peace of code only works in a Laravel 5 package. And the package I'am currently developing is for laravel 4.2 so that code is not going to work.

Thanks for your input and help.

php artisan view:publish td/longstack --path="packages/vendorname/pacakgename/src/views/"

Is the solution, i forgot to specify the folder where alle packages ('packages') are located. Now i publishes the views. Thanks for your help!


Sign in to participate in this thread!


Your banner here too?

jorenvh jorenvh Joined 13 Dec 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.