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.
syslog(1, 'my message')
You can use logger in blade
{{ logger('Test') }}