0

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.

Derick
  • 35,169
  • 5
  • 76
  • 99
Aurora
  • 133
  • 11
  • 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
  • 1
    Documentation should answer all your questions: https://laravel.com/docs/8.x/logging – Robo Robok Aug 31 '21 at 17:07
  • 1
    use Log; Log::debug('hello world'); should log directly to storage/log/laravel.log – Cameron Sep 01 '21 at 00:29

0 Answers0