Making Tables in laravel by migrations and Inserting default data by seeding

Making Tables in laravel by migrations and Inserting default data by seeding

Code Combination

3 года назад

373 Просмотров

Hello,
In this video we will create users table by using laravel migrations.Later on we will create our own migrations but in case of users laravel gives migration for users in case of authentication.
Firstly,
migrate the user table migrations by using command
----
php artisan migrate
----
It will migrate all tables in php my admin

After it we make seeders to populate the users table
command to make seeder
---
php artisan db:seed
----
after making seeder we set fields which we want to fill with
and then we seed our db by using command

-----
php artisan db:seed
----
we can also specify a single seeder
php artisan db:seed --class="Name of your seeder file"

Тэги:

#laravel_8 #fun #tutorial #youtube #study #education #html #css #bootstrap #auth
Ссылки и html тэги не поддерживаются


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