all doing in one migration modify table in laravel code example
Example 1: create migration table in php
php artisan make:migration create_users_table
Example 2: migrations required field laravel
$table->string('foo')->nullable(false)->change();