Problem in bagisto_assets function!!



  • Hi,
    I have a problem when I want to create a new page but bagisto_assets function dose not working??

    f8a390c9-9ee4-4965-9781-1d9bac866587-image.png
    In this picture, the red area must be like:

    190d9191-7aa3-4c9f-9012-782d67737fdf-image.png



  • Hi @hChamran

    Your new page's route must pass through theme middleware to use bagisto_assets function.

    Route::group(['middleware' => ['xxx', 'xxx', 'theme', 'xxx']], function () {
       
        Route::get('/routename', '[email protected]')->defaults('_config', [
            'view' => 'view file path'
        ])->name('route-name');
    
    });
    

    Thanks


Log in to reply