In this lesson, I will show you how to log data on a laravel application. Logging helps you to learn what's happening on the application.
Writing Log Messages:
Log::emergency($log_message);
Log::alert($log_message);
Log::critical($log_message);
Log::error($log_message);
Log::warning($log_message);
Log::notice($log_message);
Log::info($log_message);
Log::debug($log_message);
Writing To Specific Channels:
Log::channel('slack')->info('Some log message');
Log::stack(['single', 'slack'])->info('Some Message!');