Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.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
Laravel 获取除在cols创建和更新之外的所有内容_Laravel_Eloquent - Fatal编程技术网

Laravel 获取除在cols创建和更新之外的所有内容

Laravel 获取除在cols创建和更新之外的所有内容,laravel,eloquent,Laravel,Eloquent,我使用get()从表中检索数据。有什么方法可以使用吗 使用get()跳过这两个时间戳。表中有26列,最好跳过这两个列,而不是选择其余的列 $user=clientDetail::where('user_id',Auth::user()->user_id)->get(); 我想,你应该检查一下这个。这肯定会对你有帮助 请检查并让我知道谢谢。我使用了受保护的$hidden=['created_at']@阿伦维玛太棒了!干杯:)

我使用get()从表中检索数据。有什么方法可以使用吗
使用get()跳过这两个时间戳。表中有26列,最好跳过这两个列,而不是选择其余的列

$user=clientDetail::where('user_id',Auth::user()->user_id)->get();

我想,你应该检查一下这个。这肯定会对你有帮助


请检查并让我知道

谢谢。我使用了受保护的$hidden=['created_at']@阿伦维玛太棒了!干杯:)