mardi 30 avril 2019

how implement multiple theme in laravel

i devolop a laravel project in which I want to support multiple themes. Each theme will have different color combinations. i install teeplus create two theme how i switch from one theme to other if i press only one button

see picture in sidebar as shown two theme created

when i use this function it give error Theme::set('theme1');

this function i made for two different url and for two diff theme

public function getIndex()
{
    Theme::uses('default');

    $data['info'] = 'Hello World';

    return Theme::view('index', $data);
}

public function theme()
{
    Theme::uses('theme1');



    return Theme::view('index');
}

i want when i press a button it will change only colour combination not content



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire