php - 如何在laravel迁移中添加表注释

标签 php laravel migration

enter image description here enter image description here

我如何添加评论喜欢这个评论。 我的代码:

$table->string('stock_type');

最佳答案

$table->string('field')->comment('some comment');

关于php - 如何在laravel迁移中添加表注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72023646/

相关文章:

php - Divi Builder 自定义模块

laravel - 同一ip地址如何设置不带端口号的域名和子域名?

php - 如何在共享主机上部署 laravel websockets?

php - 如何将 VueJS 变量传递到 Laravel Blade 路由

mysql - Magento 1.9 到 2 迁移 : General error: 1419 You do not have the SUPER privilege and binary logging is enabled

laravel - SQLSTATE[42S01] : Base table or view already exists: 1050 Why I can not drop the table

php - Date of Birth 类型的 Laravel 迁移列

php - 在 php 代码运行之前显示 html

php - Sql/Doctrine 查询以查找具有多对多关联的多个条件的数据

php - 需要反转动态地理位置坐标以与 geoJson 脚本一起使用