Recent Topics

Missing admin submenus



  • Hi
    I'm having trouble using the admin on a fresh install, the submenus are not displayed, the routes however work. Where to start troubleshooting this?

    No errors are shown in the browser console or the server log.

    The configure menu on the other hand, is working as expected.

    2d27cb64-4bef-44fa-a2ae-71c6ad47e1cf-image.png



  • Hi @fmora

    Let me know Have you done any changes in the code???
    else
    try the following commands mentioned below:-

    composer dump-autoload
    
    php artisan config:cache
    
    php artisan config:clear
    


  • Hi @Vaishali-Agarwal , thank you for your help.
    I've tried your suggestions and the problem still persist.
    This made me realize though, that the only modification I've done to my code could be causing this (app/Providers/AppServiceProvider.php):

        public function boot()                                                                                                                                                                                                                 
         {                                                                                                                                                                                                                                      
             Schema::defaultStringLength(191);
                                                                                                                                                                                                      
             if (\App::environment('production')) {
                 \URL::forceScheme('https');
             }                                                                                                                                                                                                                                  
         }
    

    If I remove the forceScheme bit, the menus are displayed, but no style or JS are loaded due to mixed content errors on the browser.

    So my question is now, Is there any better approach to enable https?



  • @fmora

    don't need to use forceScheme for https.
    Just mention the https in APP_URL in .env file

    Thanks


Log in to reply