laravel-localization icon indicating copy to clipboard operation
laravel-localization copied to clipboard

Custom cookie name

Open Yeenot opened this issue 4 years ago • 1 comments

I would like to set a custom key/name for the cookie instead of the name 'locale'.

My solution is that change 'locale' on LocaleCookieRedirect middleware to a config variable with a default of 'locale' so that it can be customized.

Thank you for the awesome package :)

Yeenot avatar Mar 05 '20 00:03 Yeenot

Also would be great to change the cookie domain and httponly flag for the cases when we need to share it with the other services on the same root domain.

okovpashko avatar Mar 28 '20 17:03 okovpashko