forget parameters in middelware laravel 5.7

Posted 2 months ago by mekadoo

i have a middleware to manage Locale but i want to forget the locale parameters in the url i tried to do

$request->route()->forgetParameter('locale'); 

but it return Call to a member function forgetParameter() on null the $request->route() returns null any ideas how to solve this

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.