integer migration laravel code example

Example 1: laravel migration rollback

To rollback one step:

php artisan migrate:rollback

To rollback multiple steps:

php artisan migrate:rollback --step=[x]
  
To drop all tables and reload all migrations:

php artisan migrate:fresh

Example 2: laravel migration integer

$table->bigInteger('votes');

Example 3: migrate to an existing table in laravel commad

php artisan make:migration add_paid_to_users_table --table=users

Example 4: laravel migration

$table->string('name', 100);