Laravel : Creating Table In Laravel And Migrating It To PhpMyadmin

Опубликовано: 03 Ноябрь 2024
на канале: K G
2,901
20

To create table in laravel.

create a model with migration
command : php artisan make:model name_of_model -m
the -m creates a migration for the same model.
after that go to migration and add fields.
-migrate it to database which is in phpmyadmin
-with php artisan tinker add data in database from laravel
DO SHARE ,LIKE AND SUBSCRIBE MY CHANNEL. :)