[PHP] Laravel 获取模型/表的所有字段
作者:互联网
获取指定表的所有字段名:
use Illuminate\Support\Facades\Schema; // 表名不带前缀 $columns = Schema::getColumnListing('admins');
Facade参考:https://laravel.com/docs/9.x/facades#facade-class-reference
Link:https://www.cnblogs.com/farwish/p/16294831.html
标签:Laravel,www,reference,获取,https,PHP,com,Schema 来源: https://www.cnblogs.com/farwish/p/16294831.html