Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel create new request

$myRequest = new IlluminateHttpRequest();
$myRequest->setMethod('POST'); //default METHOD
$myRequest->request->add(['foo' => 'bar']);
dd($request->foo);
 
PREVIOUS NEXT
Tagged: #laravel #create #request
ADD COMMENT
Topic
Name
4+6 =