php - How to addressing package view on Laravel 5.1 -
i have modules folder in root directory laravel 5.1.
, located package test1 in this. have file view1.blade.php in directory
resources/views/view1.blade.php
how can access in view1.blade.php address
modules/test1/view/test.blade.php
i use command in view1 file not work correctly
@include "modules/test1/view/test";
and command
@include('modules::test')
you must define name view in packageseviceprovider
this:
// define path view files $this->loadviewsfrom(__dir__.'/view','packageview');
and in blade template use:
@include ('packageview::addpage')
Comments
Post a Comment