0

Someone could explain me, how to use Cookie inside a service provider ( Module ).

$this->loadViewsFrom(public_path('themes/'.Cookie::get('name').'/views/modules/test'),'blog');

Currently the Cookie name looks like:

eyJpdiI6ImZxSk1uR2VMWlB4TDhJa0NPN29TdVE9PSIsI

... and much more

My job is to make multiple themes to each modules, but the problem is above. Maybe there is another way to do that? I will be really grateful for help.

  • 1
    Laravel's cookies are encrypted, and the decryption process happens *after* the service providers are loaded, IIRC. See https://stackoverflow.com/questions/33212802/laravel-cookie-in-serviceprovider-not-comparable – ceejayoz Apr 03 '19 at 14:58
  • This post didn't explain me my next steps in creating this. –  Apr 03 '19 at 15:04

0 Answers0