i have a laravel project running inside a VM. how can I print something like console.log("MSG"). i can see "laravel.log" file but cant print anything inside is.
Asked
Active
Viewed 24 times
0
-
ah no. as the project runs inside a VM. i don't have a console to print out. i am expecting to write out to something like a file like laravel.log – Aurora Aug 31 '21 at 17:01
-
1Documentation should answer all your questions: https://laravel.com/docs/8.x/logging – Robo Robok Aug 31 '21 at 17:07
-
1use Log; Log::debug('hello world'); should log directly to storage/log/laravel.log – Cameron Sep 01 '21 at 00:29