Created
November 3, 2021 05:54
-
-
Save thetwopct/723b4a057a2101d6b0be9731b8ec7c5c to your computer and use it in GitHub Desktop.
Log variables/arrays in Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Log; | |
class Component extends Model { | |
Log::info(print_r($variable, true)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Or one-liner \Illuminate\Support\Facades\Log::info(print_r($variable, true));