获取指定表的所有字段名:
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
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/272271.html