leskhq / Laravel-Enterprise-Starter-Kit

👔 Enterprise Web application starter kit or template using Laravel
http://lesk.it
GNU General Public License v3.0
361 stars 175 forks source link

Skins and Layout #91

Open peteremmanuel opened 7 years ago

peteremmanuel commented 7 years ago

Hi @sroutier and everyone, is it possible to do the following

  1. configure the skins and layouts of the app so that it is changeable on the fly
  2. such that when the admin/root user changes the skin or layout, it is reflected system wide, and seen by all the other users as their current skin and layout.

I seem to have achieved 1 by including @if(Auth::check()) @if(Auth::user()->isRoot()) <script src="{{ asset("/bower_components/admin-lte/dist/js/demo.js") }}" type="text/javascript"></script> @endif @endif to partials._body.blade.php file. But whenever I set a the skin or layout, it doesn't reflect system wide. Please how do I achieve this?

sroutier commented 7 years ago

Hello @peteremmanuel, apologies for the late reply. This is an interesting question, did you make any progress on this that you could share?