PHP code example of treehousetim / lumen-middleware
1. Go to this page and download the library: Download treehousetim/lumen-middleware 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/ */
treehousetim / lumen-middleware example snippets
$app->middleware([
treehousetim\lumen_middleware\jsonStandardResponse::class
]);
class MyController extends Controller
{
public function __construct()
{
$this->middleware( 'ID_UUID',
['only'=>[
'get',
'update',
'destroy'
]]
);
}
...
}