mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
[pitboss] phase 21: Track M.3 — ScheduledJob + GraphQLResolver + WebSocket + Middleware + Migration
This commit is contained in:
parent
00b0fbaea9
commit
f9bd51c024
84 changed files with 5898 additions and 40 deletions
11
tests/dynamic_fixtures/middleware/laravel/benign.php
Normal file
11
tests/dynamic_fixtures/middleware/laravel/benign.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
// Phase 21 — Laravel middleware benign control.
|
||||
// use Illuminate\\Http\\Request;
|
||||
|
||||
class Audit {
|
||||
public function handle($request, $next) {
|
||||
$body = is_object($request) && isset($request->body) ? (string)$request->body : (string)$request;
|
||||
shell_exec("echo " . escapeshellarg($body));
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue