php - Different folder for views - Laravel 5.4 -
i'm trying make reusable dashboard apps, decided put in folder app/dashboard
. i've managed have routes, controller, middlewares, etc. but, i'd have views in folder. added path in config/view.php
, problem if have 2 views same name in app/dashboard/views
, in default resources/views
, of course view in default path loaded.
do have better idea? can return view('dashboard:login')
in controller using laravel standard tools?
look @ part of documentation https://laravel.com/docs/5.5/packages#views. right, need use 2 colons
return view('dashboard::login');
Comments
Post a Comment