create new table in laravel code example

Example 1: laravel create db table

php artisan make:migration create_users_table

Example 2: laravel make migration

php artisan make:migration CreateUsersTable

Example 3: create database from migration laravel for all

php artisan migrate --force

Example 4: 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

Example 5: hwo to create a database table in laravel

php artisan make:migartion create_users_table

Tags:

Sql Example