whoami7 - Manager
:
/
home
/
qbizpnmr
/
test.qbiztax.com
/
app
/
Http
/
Middleware
/
Upload File:
files >> //home/qbizpnmr/test.qbiztax.com/app/Http/Middleware/AddXHeader.php
<?php namespace App\Http\Middleware; use Closure; class AddXHeader { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $response = $next($request); // Check if we should add header if (method_exists($response, 'header')) { $response->header('X-Akaunting', 'Online Accounting Software'); } return $response; } }
Copyright ©2021 || Defacer Indonesia