teepluss / laravel-theme

Theme and asset managing for laravel
MIT License
545 stars 131 forks source link

how to load css in controller after load css in config? #142

Open nekooee opened 7 years ago

nekooee commented 7 years ago

Hi my css in controller: $this->theme->asset()->usePath()->add('rtl', 'css/custom-rtl.css'); and css in config: $theme->asset()->usePath()->add('preload', 'css/preload.min.css');

how to load first preload.mini.css and secend load custom-rtl.css?

nhiha60591 commented 7 years ago

Just change on your controller like this. $this->theme->asset()->usePath()->add('rtl', 'css/custom-rtl.css', array('preload'));

Please let me know if you have any problem. Thanks!

nekooee commented 7 years ago

thank you work fine