首页 > 作文

Laravel – Method [xxx] does not exist on [xxx]

更新时间:2023-04-07 17:01:38 阅读: 评论:0

the controller is existing, and the method ‘test’ exist on ‘app\http\controllers\admin\indexcontroller’. but laravel show me that there is no method on the 二次函数图像怎么画controller, i donR波撼岳阳城17;t know why. i have askd for help on th七夕乞巧什么意思e internet, but no one can help me. the error like pic1.

now i show you my project folder and the files.

the namespace of the indexco烟台农博园ntroller.php is right. and the 语言的魅力method test is existed. but laravel told me that method does not exist… i don’t know what happend!

maybe you have the same trouble, now, i will give you a way to solve the problem. then, let’s go.

look at this file.

there is a backup file in my project. i had edited the controller file after created the backup file. so the content of the two files is different. initially, there is no problem. but when i execute the command “compor update”… oh, my god!

now, look at the directory vendor/compor, and open the file autoload_clappmap.php and autoload_static.php. arch indexcontroller in the two files.

in autoload_classmap.php:

in autoload_static.php:

look at the red box. the real file is not indexcontroller.php, but is the backup file. i have said, the two file is different. the method test does not on indexcontroller.bk.php. so laravel show me the error.

we have known why the problem happend. now, we should solve it.

1) update the ‘indexcontroller.bk.php’ to ‘indexcontroller.php’ that in the autoload_classmap.php and autoload_static.php.

2) or you can delete the backup file or move it to other directory, then do 1).

3) or you can delete the backup file or move it to other directory. then execute the command compor update. but it is slow…

report:

developing good programming habits can avoid many mistakes.

本文发布于:2023-04-07 17:01:36,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/571252e3061cc4b557b22a6754c1caff.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:Laravel – Method [xxx] does not exist on [xxx].doc

本文 PDF 下载地址:Laravel – Method [xxx] does not exist on [xxx].pdf

标签:岳阳   烟台   什么意思   函数
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图