Download the PHP package saasscaleup/laravel-console-log without Composer
On this page you can find all versions of the php package saasscaleup/laravel-console-log. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download saasscaleup/laravel-console-log
More information about saasscaleup/laravel-console-log
Files in saasscaleup/laravel-console-log
Package laravel-console-log
Short Description Easily stream your Laravel application logs to the browser console.log in real-time using server-sent event (SSE)
License MIT
Homepage https://github.com/saasscaleup/laravel-console-log
Informations about the package laravel-console-log
Easily stream your Laravel application logs to the browser console tab (console.log) in real-time using server-sent event (SSE)
This package lets backend developers easily print messages and values in terminal. This is the php version of console log for Laravel.
Compatible with Laravel v5+.
Youtube
·
Twitter
·
Facebook
·
Buy Me a Coffee
✨ Features
- Easily stream your Backend events from your Controllers \ Events \ Models \ Etc... to Frontend browser console tab(
console.log')(data)
). - Easily stream your Application Logs (
storage/logs/laravel.log
)to Frontend browser console tab (console.log')(data)
).
Requirements
- PHP >= 7
- Laravel >= 5
Installation
Install composer package (dev)
Via Composer - Not recommended for production environment
For Laravel < 5.5
Add Service Provider to config/app.php
in providers
section
Add Facade to config/app.php
in aliases
section
Publish package's config, migration and view files
Publish package's config, migration and view files by running below command:
Run migration command
Run php artisan migrate
to create stream_console_logs
table.
Setup Laravel Console Log -> LCL
Add this in your main view/layout (usually layout/app.blade.php
) file before