Hello guy’s how are you? Welcome back on my blog. Today in this blog post, we will do, Laravel 8 AUTH Create User Login Register Pages – Part 2 Working Database.
Post Working: Guy’s with post we will save user data in database. In part 1 we created AUTH login and register pages and please check that.
Guys if you are new in Laravel 8 the please check below link for Laravel tutorials:
Friends now I proceed onwards and here is the code snippet and please use this carefully to avoid the mistakes:
1. Guy’s very first create database in mysql and add databse details inside `.env` file like below example:
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel8demos DB_USERNAME=root DB_PASSWORD=
3. Now guy’s we need to run below command to database table for user:
php artisan migrate
Now guy’s we are done and please run php artisan serve command to check the working.
Guy’s if you have any kind of query then please do comment below.
Recent Comments