How to set up a database in Laravel 10,9,8 ,7,6

Опубликовано: 29 Март 2023
на канале: Bassonia Tv
33
0

How to set up a database in Laravel.
Basic Database Usage

Configuration
Read / Write Connections
Running Queries
Database Transactions
Accessing Connections
Query Logging

Configuration

Laravel makes connecting with databases and running queries extremely simple. The database configuration file is app/config/database.php. In this file you may define all of your database connections, as well as specify which connection should be used by default. Examples for all of the supported database systems are provided in this file.

Currently Laravel supports four database systems: MySQL, Postgres, SQLite, and SQL Server.