laravel migration make field dependent code example
Example 1: migrations required field laravel
$table->string('foo')->nullable(false)->change();
Example 2: laravel make migration
php artisan make:migration CreateUsersTable
$table->string('foo')->nullable(false)->change();
php artisan make:migration CreateUsersTable