text laravel api 404错误

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text laravel api 404错误相关的知识,希望对你有一定的参考价值。

------------------------------------------------------------------------------------------
FOR UBUNTU
------------------------------------------------------------------------------------------
sudo a2enmod rewrite
sudo service apache2 restart
------------------------------------------------------------------------------------------

------------------------------------------------------------------------------------------
FOR CENTOS
------------------------------------------------------------------------------------------
make sure Apache successfully started
sudo systemctl status httpd
	active running since:

Verifying mod_rewrite
httpd -M
	rewrite_module (shared)

https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite-for-apache-on-centos-7	
------------------------------------------------------------------------------------------

以上是关于text laravel api 404错误的主要内容,如果未能解决你的问题,请参考以下文章

为啥 Api Route 在 laravel 应用程序中不起作用,显示错误(未找到 404 错误)?

Laravel localhost API错误404 / public正在运行

Laravel API 路由 - 404

Laravel API 路由 404 未找到修复?

为啥我的路线返回 404 错误 Laravel?

Laravel - 当 API 路由错误或找不到时如何显示 JSON?