📌  相关文章
📜  laravel 获取列字段名 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:48.155000             🧑  作者: Mango

代码示例2
// You may need to run
composer require doctrine/dbal
// Retrieve laravel column type
$columnType = DB::getSchemaBuilder()->getColumnType($tableName, $colName)
// for example
$columnType = DB::getSchemaBuilder()->getColumnType('user', 'age')