Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check request header laravel

namespace AppHttpControllers;

use IlluminateSupportFacadesRoute;
use IlluminateHttpRequest;

Route::get('/', function () {
    class UserController extends Controller
    {
        public function store(Request $request)
        {
            if ($request->hasHeader('X-Header-Name')) {
                //
            }
        }
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #request #header #laravel
ADD COMMENT
Topic
Name
3+2 =