phplaravelloggingsyslog

Can I log from a Laravel blade template?


I want to log from within a Laravel blade template. Can I log something using the Laravel logger, or a simple syslog(1, 'my message') would even be better.


Solution

  • You can use logger in blade

    {{ logger('Test') }}