samedi 7 mai 2016

Laravel 5 - include a package view from within a normal view

Is there a possibility to include a view from a package?

I have a controller which returns a view from resources/views, so nothing special. But from this view, I want to include a view from a package I am developing. I tried the following, but with no success.

@include('vendor.brotzka-databaselogger.list')

{!! view('brotzka-databaselogger::list') !!}

It works from the Controller (in app/Http/Controllers) with:

return view('brotzka-databaselogger::list');

Any idea, how to load a package view from within a normal view?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/24CzJLR
via IFTTT

Aucun commentaire:

Enregistrer un commentaire