在模板中引入用户切换功能出现找不到路径?
@if (app()->isLocal())
@include('sudosu::user-selector')
@endif
在主模板里使用这个引入sudosu::user-selector出现错误,错误提示找不到该模板路径
ErrorException (E_ERROR)
No hint path defined for [sudosu]. (View: /home/vagrant/Code/Laravel/resources/views/layouts/app.blade.php) (View: /home/vagrant/Code/Laravel/resources/views/layouts/app.blade.php)
有没有人遇到同样的问题,你们是怎么解决的?



关于 LearnKu
是不是没有按照课程的要求配置域名?严格按照课程来会省下很多麻烦。
你的问题出现在没有正确配置好
allowed_tlds,按照教程来就不会了:config/sudosu.php