Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $currentHostUrl = Request::getHost();
- Event::listen(
- 'cms.theme.getActiveTheme',
- function () use ($currentHostUrl) {
- $domain = Domain::where('domain', $currentHostUrl)->first();
- if($domain !== null)
- {
- return 'differentTheme';
- }
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement