laravel log
snippet in php

laravel log

user8885

use Illuminate\Support\Facades\Log;

Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);

laravel log

user1104

use Log;

Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);

how to log object laravel logger

user3868

use Illuminate\Support\Facades\Log;

Log::info(json_encode($user);

how to log object laravel logger

user634

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