How to connect database in laravel 5.8
All of the configuration files for the Laravel framework are stored in the config directory. But, we will directly access Environment Configuration file i.e dot env (.env) file.
So in your .env file you will access many things like App_name, App_urls, database configuration,
Now , your .env file is setup and ready to start the project but before that make sure you have created a database in server, example in XAMPP, WAMPP or LAMP.
So, you are Successfully Configured with your database and start to serve your artisan.
Note: If you do any changes in .env file, restart or re-serve your artisan by using below command:
Latest PostsHow to create a database error page in laravel How to disable register route and other Auth route in laravel 5.7 + How to create database seeder in Laravel Automatically Generate Sitemap in Laravel How to Ban | Block | Disable and unBan user for login in laravel How to make Multiple Login System using auth in Laravel 5.8 (User + Admin) with Middleware How to make Login and Register System using Auth Command in Laravel 5.8 How to connect database in laravel 5.8 How to install Laravel 5.8 and create a project in laravel 5.8
© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT