How to make a Migration file based on a model in Laravel
问题 What if I have some model, with non-default features (like soft delete or custom id name) and want to create a Migration file from it, which would have all these properties in it? So here is my model: class Test extends Model { use SoftDeletes; protected $primaryKey = 'test_id'; protected $table = 'my_flights'; protected $dates = ['deleted_at']; } And I want my Migration file to be based on it. But when I use command php artisan make:migration create_test(s)_table (I tried both test and tests