123456789101112131415161718192021222324252627 |
- <?php
- /**
- * Created by PhpStorm.
- * User: robin
- * Date: 10/19/15
- * Time: 10:20 PM
- */
-
- namespace Luticate\Utils;
-
- use Closure;
- use Illuminate\Http\Request;
-
- class ParametersMiddleware
- {
- /**
- * @param $request Request
- * @param Closure $next
- * @param ...$permissions
- * @return mixed
- */
- public function handle($request, Closure $next, ...$permissions)
- {
- LuBusiness::$parameters = array_merge($_GET, $_POST, $request->route()[2], LuBusiness::$parameters);
- return $next($request);
- }
- }
|