我已经开始学习laravel,(我是一个初学者)。当我通过身份验证教程时,遇到了以下我不理解的行为。
我可以使用网址访问项目的所有部分
localhost/myproject/public/laravel_route
(我正在使用XAMPP)
当我在提交表格时 localhost/myproject/public/auth/register
与target = 'auth/register'
并且method='post'
趋向于
localhost/myproject/public/auth/auth/register
请解释
url()
在刀片文件中使用功能
<form action={{url('auth/register')}} method ='post'>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句