Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

marouanaf's avatar

AdminLTE And LAravel

Hello Guys,

I have a project where I have to create a Dashboard, So In order to minimize time and focus more on the back-end work, I want to use AdminLTE.

From your experience; where do you recommend I put the AdminLTE Files, and how to better use it? because I think that putting the files in the public directory is a bad practice.

Another thing, is there another free Dashboard that you recommend to me instead of AdminLTE ?

Thank you in advance.

0 likes
2 replies
grenadecx's avatar
Level 7

I would move the files inside resources/assets folder either split it up or just put everything inside an adminlte folder. Then I would add the files needed for adminlte inside webpack.mix.js. So when you run npm run dev/prod, it will compile the css/js files and move the files you specified to be copied into the public folder.

And then I suppose I would made a layout file from the empty html file as a base for all the pages. And put the appropiate @yields and what not so you can use something like

@extends('layouts.master')

@section('content') page content here @stop

On all the other blade files to extend the layout.

If you want to make it even easier but with you in less control, you could probably use something like this to speed it up:

https://github.com/jeroennoten/Laravel-AdminLTE

1 like

Please or to participate in this conversation.