laravel-console-log maintained by sand
laravel-console-log
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.3+.
P.S. If you have any useful idea for Laravel Console Log, which is not presented here, feel free to add it to our collection, we appreciate your support and gladly merge it 🥰
Installation
You can install the package via composer:
composer require sand/laravel-console-log
Laravel 5.5+
The package will automatically register itself, so you don't need to do anything else.
Laravel 5.4
Add this entry to providers array in your config/app.php file.
Sand\LaravelConsoleLog\LaravelConsoleLogServiceProvider::class
'providers' => [
/*
* Laravel Framework Service Providers...
*/
Illuminate\Auth\AuthServiceProvider::class,
Illuminate\Broadcasting\BroadcastServiceProvider::class,
...
Sand\LaravelConsoleLog\LaravelConsoleLogServiceProvider::class
...
],
Available function
log
Check is passed parameter empty, and if not, adds where condition on $column to exiting query.
Useful when you have complex query, with a lot of constructions like
Signature:
Console::log($param);
Example:
$var = 'Hello World!';
- file_put_contents($logPath, var_export($variable, TRUE) . "\n\n");
+ Console::log($var);
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email sand050965@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.