you really shouldnt have two versions of the same site, instead use a CSS framework/responsive design to change that one version to respond to many layouts..
Ok but what i have in mind is to make it respond to sub domain because is a social site.
This is how i solved it
<?php if (preg_match('/localhost/', $_SERVER['HTTP_HOST'])) { $this->theme = Theme::type('mobile')->current(\ThemeManager::getActive('mobile'))->reBoot()->layout('layouts.default'); } elseif (preg_match('/127.0.0.1/', $_SERVER['HTTP_HOST'])) { $this->theme = Theme::type('frontend')->current(\ThemeManager::getActive('frontend'))->reBoot()->layout('layouts.default'); }Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community