SHARE
TWEET

Untitled

a guest Jul 17th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $currentHostUrl = Request::getHost();
  2.  
  3.     Event::listen(
  4.         'cms.theme.getActiveTheme',
  5.         function () use ($currentHostUrl) {
  6.             $domain = Domain::where('domain', $currentHostUrl)->first();
  7.             if($domain !== null)
  8.             {
  9.                 return 'differentTheme';
  10.             }
  11.         }
  12.     );
RAW Paste Data
Top