how to create a table in laravel code example

Example 1: add column in laravel migration

php artisan make:migration add_paid_to_users_table --table=users

Example 2: laravel create db table

php artisan make:migration create_users_table

Example 3: migrate command

golang migrate create

migrate create -ext sql -dir db/migration -seq init_schema
eg :migrate create -ext sql events

Example 4: hwo to create a database table in laravel

php artisan migrate

Example 5: hwo to create a database table in laravel

php artisan make:migartion create_users_table

Example 6: create table laravel

php artisan make:migration create_employeeDetails_table --create=Employee
//goto create_employeeDetails_table file and add fields in table
php artisan migrate

Tags:

C Example