Laravel-adminlte: how to make two template in apps

Created on 25 Jun 2020  路  1Comment  路  Source: jeroennoten/Laravel-AdminLTE

How do I have more than 1 template? For example
vendor /
adminlte
adminlteClient
adminlteAdmin

question

Most helpful comment

I use Middleware

In routes/web.php

front template:

Route::group(['middleware' => ['frontend']], function () {
    Route::get('/', function () {           
        view('front'); 
    });
});

backend template:

Route::group(['middleware' => ['backend', 'auth']], function () {
    Route::get('/profile', function () {           
        view('front'); 
    });
});

Middleware/FrontEnd.php

Config::set('adminlte.layout_topnav', true);
//Config::set('adminlte.another_config', 'value');
//etc including adding a menu in each middleware using Event and BuildingMenu

>All comments

I use Middleware

In routes/web.php

front template:

Route::group(['middleware' => ['frontend']], function () {
    Route::get('/', function () {           
        view('front'); 
    });
});

backend template:

Route::group(['middleware' => ['backend', 'auth']], function () {
    Route::get('/profile', function () {           
        view('front'); 
    });
});

Middleware/FrontEnd.php

Config::set('adminlte.layout_topnav', true);
//Config::set('adminlte.another_config', 'value');
//etc including adding a menu in each middleware using Event and BuildingMenu
Was this page helpful?
0 / 5 - 0 ratings

Related issues

iHeartBard picture iHeartBard  路  4Comments

niltonssjr picture niltonssjr  路  4Comments

dunfy picture dunfy  路  6Comments

samuelm77 picture samuelm77  路  4Comments

WillieOng-HK picture WillieOng-HK  路  4Comments