Php 未找到Laravel视图5.2
我得到1个错误,这是非常奇怪的。 错误:未找到查看[页面.电子邮件\u模板.欢迎\u模板\u 5] 但事实上,视图文件确实存在于提到的文件夹中 我试过服从命令,但没有成功Php 未找到Laravel视图5.2,php,laravel,view,Php,Laravel,View,我得到1个错误,这是非常奇怪的。 错误:未找到查看[页面.电子邮件\u模板.欢迎\u模板\u 5] 但事实上,视图文件确实存在于提到的文件夹中 我试过服从命令,但没有成功 php artisan cache:clear php artisan config:clear php artisan config:cache 控制器: $templatename = strtolower(str_replace(' ','_',$template_text->template_name)); r
php artisan cache:clear
php artisan config:clear
php artisan config:cache
控制器:
$templatename = strtolower(str_replace(' ','_',$template_text->template_name));
return view('pages.email_templates.'.$templatename);
最好的部分:它在本地主机上运行良好,但在服务器上运行不正常您是否尝试过
php artisan dump autoload
或composer dump autoload
或composer dump autoload首先您需要清除应用程序缓存并配置
php artisan cache:clear
php artisan config:clear
php artisan view:clear
$string1 = "pages.email_templates";
$string2 = $templatename = strtolower(str_replace(' ','_',$template_text->template_name));
$page = sprintf("%s%s",$string1,$string2);
return view($page);
自动加载所有类和类依赖项
composer dump-autoload
首先,需要清除应用程序缓存和配置
php artisan cache:clear
php artisan config:clear
php artisan view:clear
$string1 = "pages.email_templates";
$string2 = $templatename = strtolower(str_replace(' ','_',$template_text->template_name));
$page = sprintf("%s%s",$string1,$string2);
return view($page);
自动加载所有类和类依赖项
composer dump-autoload
你应该试试这个:
composer dumpautoload
php artisan config:cache
php artisan cache:clear
php artisan config:clear
php artisan view:clear
$templatename = strtolower(str_replace(' ','_',$template_text->template_name));
return view('pages.email_templates.'.$templatename);
你应该试试这个:
composer dumpautoload
php artisan config:cache
php artisan cache:clear
php artisan config:clear
php artisan view:clear
$templatename = strtolower(str_replace(' ','_',$template_text->template_name));
return view('pages.email_templates.'.$templatename);
截图查看目录或共享完整的视图名称及其目录路径。它的解决方案制作视图目录的屏幕截图或共享完整的视图名称及其目录路径。它的solved@RakeshTripathi当前位置很高兴为您提供帮助,如果我的答案对您有用,请接受我的答案并向我的投票answer@RakeshTripathi:很高兴为您提供帮助,如果我的答案对您有用,请接受我的答案并投票给我的答案是的,我无权发表评论,对不起。。。但现在我知道了…是的,我没有权限发表评论,对不起。。。但现在我知道了。。。