How to override the admin layout?

  • Hi,

    I've added a new item to the left nav via a package and would like to have a custom icon display with it, i've created the icon and added a stylesheet for it.

    However I can't seem to find a way to add these styles to every page or extend the admin.layouts.master file.

    If you could point me in the right direction that would be great.


  • Hi,

    Please follow this link for creating custom theme -
    If you found any difficulty to implement this, please write to us.

    Rahul Shukla

  • As far as I was aware, that theme only only applies to the front-end and not the back end. Please correct me if I am wrong?

  • Hi Iwilliams-heli,

    Of course, you are right, I slightly misjudge the question,![alt text](view-ovveride.png image url) sorry for that.

    To override admin layout, you can create your own view in laravel's default view folder.
    Check laravel's default view folder (resources -> views), you will find a folder name as vendor, In this vendor folder create your own view but make sure that it consist the same directory structure as package have.
    For admin, create a folder name admin in this folder create a same directory of view as admin package consist.
    Example - like I have to override master file , then in admin folder i will create layouts folder & inside this folder, create file name master.blade.php & write own code here.
    For more reference please this attached image.

    Rahul Shukla

  • Thanks Rahul.

    This has now allowed me to override as needed.

Log in to reply