使用laravel的Log门面打印Object的数据结构
作者:互联网
有两种方法
第一种:
use Illuminate\Support\Facades\Log; Log::info(json_encode($user);
第二种:
use Illuminate\Support\Facades\Log; Log::info(print_r($user, true));
参考资料:
https://www.codegrepper.com/code-examples/php/how+to+log+object+laravel+logger
标签:laravel,info,use,Log,Support,Object,Facades,user 来源: https://www.cnblogs.com/jamstack/p/16201312.html