Laravel provides Auth class for authentication but before we use it first we have to create a login form. We will create a file login.blade.php in user view directory. Here is the code to create the login form.
Now we have created a registration form. As we have defined the action of our form as user/createUser so we have to create a route for this url.
Notice the method of the route is POST as the method of our form is POST. To insert the data we will have to create a […]
For the registration we need a registration form. As you know we keep our html files in views directory, so we will create a file in views directory. I have created a file create.blade.php in app/views/user/ directory. You should know about the laravel blade templates and laravel blade syntax. We will put our registration form […]