Support the ongoing development of Laravel.io →
posted 9 years ago
Packages
Last updated 2 years ago.
0

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

0

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.

0

I've never tried views and custom packages together. You might wanna checkout the http://laravel.com/docs/5.0/packages page. I think that's what you're looking for.

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

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.

0
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!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jorenvh jorenvh Joined 13 Dec 2014

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.