Answer the question
In order to leave comments, you need to log in
How to make a request to a method with a parameter (Request $request) in Laravel?
There is a javascript code that does this:
$.get( "calendar", requests, function( data ) {
$( "#result" ).html( data );
});
Answer the question
In order to leave comments, you need to log in
Most likely you need to make a normal call to the neighboring method
function foo(Request $request) {
return $this->bar($request);
}
function bar(Request $request) {
// Your code
return ...;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question