0

我已经创建了一个模型php artisan make:model CommentOnPost,我想创建它的迁移文件我应该使用什么迁移名称?这样做对吗 php artisan make:migration create_comment_on_posts_table???

4

1 回答 1

0

您也可以使用创建migration文件model

php artisan make:model CommentOnPost -m--> 迁移,使用此命令创建模型文件

额外的

php artisan make:migration create_comment_on_posts_table --create=comment_on_posts//只创建迁移文件

php artisan make:model CommentOnPost -mcr//对于创建Migration,,,文件ModelController

于 2020-09-17T12:11:06.830 回答