在 laravel 中路由 xampp

routing in laravel with xampp

我开始学习了laravel,(我算是初学者了)。在我完成身份验证教程时,我遇到了以下我不理解的行为。

我可以使用 Url

访问项目的所有部分

localhost/myproject/public/laravel_route (我正在使用 XAMPP)

当我在 localhost/myproject/public/auth/register

提交表格时

target = 'auth/register'method='post' 它倾向于去

localhost/myproject/public/auth/auth/register

请解释

使用 blade 文件中的 url() 函数

<form action={{url('auth/register')}} method ='post'>