After successfully install laravel Application, Go to your project .env file and set up database credential and move next step :
Next, migrate the table into the database using the below command :
In this step, we will create some routes like custom login route, custom registration route, post data route, and dashboard, etc.
We need to create a controller name AuthController. Use the below command and create Controller :
After successfully create controller go to app/controllers/AuthController.php and update the below code in your controller:
Now you can create login.blade.php file and update the below code into your file:
<Now you can create registration.blade.php file and update the below code into your file
Now you can create dashboard.blade.php file and update the below code into your file
We need to start the development server. Use the PHP artisan serve command and start your server :
http://127.0.0.1:8000/ now go to this url
- AJAX Crud with laravel 5.8 - October 29, 2021
- Upload image in the database with local folder and image send mail. - October 23, 2020
- How to protect .env file in Laravel. - September 10, 2020