sand/laravel-console-log
最新稳定版本:v1.0.0
Composer 安装命令:
composer require sand/laravel-console-log
包简介
A php version of console log which can easily print messages and values in terminal in terminal for Laravel.
README 文档
README
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.
统计信息
- 总下载量: 132
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-17