Simple and easy to use Admin LTE template for laravel
-
Require the package using composer:
composer require ahyadessam/laravel-adminlte
-
Add the service provider to the
providers
inconfig/app.php
:ahyadessam\AdminLTE\AdminLTEServiceProvider::class,
-
Publish the public assets:
php artisan vendor:publish --provider="ahyadessam\AdminLTE\AdminLTEServiceProvider"
Easy to use and you will find folder adminlte_temp
in views
folder it's contain examples for use
just create a blade it's extends layout @extends('adminlte_layout.admin_lte')
page_title
: page titlecss-files
: add css files to headerjs-files
: add javascript filescontent-header
: head of content such as H1 and breadcrumbcontent
: for page contentsjavascript
: to add javascript code in the footer
@extends('adminlte_layout.admin_lte')
@section('page_title')
dashboard
@endsection
@section('css-files')
<link rel="stylesheet" href="file.css">
@endsection
@section('js-files')
<script src="file.js"></script>
@endsection
@section('content-header')
<h1>
Dashboard
<small>Control panel</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active">Dashboard</li>
</ol>
@endsection
@section('content')
<div>i'm in dashboard</div>
@endsection
@section('javascript')
<script>
alert('test');
</script>
@endsection
You will find menu array in config/admin_lte.php
, you can custom it as you link.
- This is a simple system you can used it to manage your admins and permissions
- It's contain administrators and groups modules
- you will find it in this link : mini_system and it included in your files on the path
vendor/ahyadessam/laravel-adminlte/mini_system
for any question you can contact with me on twitter @AhyadEssam, thanks