lundi 5 décembre 2016

How to remove project name in the route name in Laravel

I would like to ask if how to remove the project name in the route name. I went through a tutorial and follow each practice sessions and when I tried to post the registration that went like this:

<form action = "/user/register" method = "post">
     <input type = "hidden" name = "_token" value = "<?php echo csrf_token() ?>">

     <table>
        <tr>
           <td>Name</td>
           <td><input type = "text" name = "name" /></td>
        </tr>

        <tr>
           <td>Username</td>
           <td><input type = "text" name = "username" /></td>
        </tr>

        <tr>
           <td>Password</td>
           <td><input type = "text" name = "password" /></td>
        </tr>

        <tr>
           <td colspan = "2" align = "center">
              <input type = "submit" value = "Register" />
           </td>
        </tr>
     </table>

  </form>

but when I posted it, it showed an error saying the url was not found so I added the project name in the url: /test_laravel/user/register is the new action. Well it worked but how to get rid of this?

Thanks!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2gXCH7W
via IFTTT

Aucun commentaire:

Enregistrer un commentaire