Laravel 6 tutorial - Episode 7 : models, migrations, MySQL and SQLITE Database

Laravel 6 tutorial - Episode 7 : models, migrations, MySQL and SQLITE Database

Moroccan Coder

54 года назад

276 Просмотров

Developers can work in Eloquent with multiple
databases efficiently using an ActiveMethod implementation. It is an architectural
pattern where the model created in the Model-View-Controller (MVC) structure
corresponds to a table in the database. The advantage is for models to perform
common database operations without coding lengthy SQL queries. Models allow
data querying in your tables, as well as inserting new records into tables. The
process of synchronizing multiple databases running on different systems is
simplified. There is no need to write SQL queries at all. All you have to do is to
define database tables and relations between them, and Eloquent will do the rest of
the job.
For migrations, Migration is a process of managing your database by writing PHP
rather than SQL. Also it provides a way of adding version control to your database.
Assuming that our database is up and running.
For databases Laravel makes interacting with databases extremely simple across a
variety of database backends using either raw SQL, the fluent query builder, and
the Eloquent ORM. Currently, Laravel supports four databases.

Тэги:

#laravel_6_tutorail #laravel_tutorail #laravel_maroc #laravel_morocco #laravel_models #laravel_6_models #laravel_migrations #laravel_6_migrations #laravel_database #laravel_6_database #laravel_MySQL #laravel_6_MySQL #laravel_SQLITE #laravel_6_SQLITE #laravel_.env #laravel_6_.env #laravel_make_model #laravel_make_migration #laravel_6_make_model #laravel_6_make_migration #php_rtisan #php_artisan_make_model #php_artisan_make_migration #php_artisan_migrate
Ссылки и html тэги не поддерживаются


Комментарии: