laravel 获取表中的字段详细信息 use Illuminate\Support\Facades\Schema; //获取表中的字段 $columns = Schema::getColumnListing('表名'); //去除不想要的字段 $columns = array_diff