希望可以优化命令行make:model

senge520

建议命令行 make:model 考虑支持指定connection,并从table schema中读取生成model的属性注释,方便IDE提示。

例如:

/**
 * This is the model class for table "coooool".
 *
 * @property int $created_at
 * @property int $updated_at
 */

😊😊😊

812 3 0
3个回答

xiaoming

的确

  • 暂无评论
ersic

现在本来就会生成model的属性注释,connection 用的 mysql

  • 暂无评论
chaz6chez
  • efnic 2024-01-23

    本来就支持生成带注释的模型。

  • chaz6chez 2024-01-23

    之前不支持connection变更,现在增加了connection的可选变更,而不是只能用默认的mysql,你点进去看详情

年代过于久远,无法发表回答
🔝