💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
使用 `Artisan CLI` 的 `make:migrate` 命令建立迁移文件: ~~~ ~~~ php artisan make:migration create_users_table ~~~ ~~~ 迁移文件会建立在 `database/migrations` 目录下,文件名会包含时间戳记,在执行迁移时用来决定顺序。 `--table` 和 `--create` 参数可以用来指定数据表名称,以及迁移文件是否要建立新的数据表。 ~~~ ~~~ php artisan make:migration add_votes_to_users_table --table=users php artisan make:migration create_users_table --create=users ~~~ ~~~