Answer the question
In order to leave comments, you need to log in
How to pass a Request to a method?
Good evening everyone!
Tell me how to pass Request $ request to the static function
<div class="col-3">
{{Category::menu()}}
</div>
$site = Sites::where('domain', $request->getHttpHost())->first();
class CategoryController extends Controller
{
static function menu(Request $request){
dd($request);
return $request->all();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question