how to log object laravel logger
snippet in php

how to log object laravel logger

user5795

use Illuminate\Support\Facades\Log;

Log::info(json_encode($user);

how to log object laravel logger

user4281

Log::info(print_r($user, true));