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

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -