© Sanjib Sinha 2019
S. SinhaBeginning Laravel https://doi.org/10.1007/978-1-4842-4991-8_5

5. Database Migration and Eloquent

Sanjib Sinha1 
(1)
Howrah, West Bengal, India
 

You can interact with databases using Laravel 5.8 in a simple and expressive way. Either you can use the DB facade, using raw SQL to query your databases, or you can use Eloquent ORM.

Laravel supports four databases.
  • MySQL

  • PostgreSQL

  • SQLite

  • SQL Server

You have learned how to configure a database for any application you want to build. The database configuration file is config/database.php. If you want, you can define all your database connections; you can also specify which one will be the default one.

Introduction to Migration

You can easily create and modify your database tables with the ...

Get Beginning Laravel: Build Websites with Laravel 5.8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.