how to log to browser console from laravel code example Example: laravel log to console error_log('Some message here.');