Routing in laravel using xampp

I started learning laravel (I'm pretty newbie). While I was going through an out-of-tutorial, I came across the following behavior that I do not understand.

I can access all parts of my project using Url

localhost/myproject/public/laravel_route (I am using XAMPP)

when i submit the form to localhost/myproject/public/auth/register

with target = 'auth/register'and method='post'he seeks to move on to

localhost/myproject/public/auth/auth/register

Explain

+4
source share
1 answer

Use function url()in click file

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

Source: https://habr.com/ru/post/1626965/


All Articles