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 🥰
You can install the package via composer:
composer require sand/laravel-console-log
The package will automatically register itself, so you don't need to do anything else.
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
...
],
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
Console::log($param);
$var = 'Hello World!';
- file_put_contents($logPath, var_export($variable, TRUE) . "\n\n");
+ Console::log($var);
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email sand050965@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.