Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在Laravel Eloquent中显示模型的列名_Php_Laravel_Eloquent - Fatal编程技术网

Php 在Laravel Eloquent中显示模型的列名

Php 在Laravel Eloquent中显示模型的列名,php,laravel,eloquent,Php,Laravel,Eloquent,我需要在Laravel Elount中显示模型的列名。 我需要一个数组来使用,如: if(在数组中($column,$columns)) 也许您可以使用: 使用模式; $accept_columns=Schema::getColumnListing('users'); if(在数组中($orderBy,$accept_列)) { //你的密码在这里 }

我需要在Laravel Elount中显示模型的列名。 我需要一个数组来使用,如:

if(在数组中($column,$columns))
也许您可以使用:

使用模式;
$accept_columns=Schema::getColumnListing('users');
if(在数组中($orderBy,$accept_列))
{
//你的密码在这里
}