PHP code example of lazywe / lazy-tools
1. Go to this page and download the library: Download lazywe/lazy-tools library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lazywe / lazy-tools example snippets
json(Code $status, string $msg, array $data);
// Usage 加载middleware lazy-decryption, 即可解出params
Route::get("test", "TestController@index")->middleware(['lazy-decryption'])
json
php artisan vendor:publish --provider='Lazy\Tools\ServiceProvider'