ahyadessam / laravel-adminlte
AdminLTE template for Laravel
Installs: 108
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Rich Text Format
Requires
- php: >=5.5.9
- laravel/framework: >=5.4.0
README
Simple and easy to use Admin LTE template for laravel
1- Installation
-
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"
2- Usage
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')
You can use the following sections (all is optional) :
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
Sample example for a blade template (all is optional)
@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
3- Menu
You will find menu array in config/admin_lte.php
, you can custom it as you link.
I have a simple system for administrators and groups permissions (mini_system)
- 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
Contact
for any question you can contact with me on twitter @AhyadEssam, thanks