Download the PHP package elnooronline/laravel-adminlte without Composer
On this page you can find all versions of the php package elnooronline/laravel-adminlte. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download elnooronline/laravel-adminlte
More information about elnooronline/laravel-adminlte
Files in elnooronline/laravel-adminlte
Package laravel-adminlte
Short Description A short description of what your package does
License MIT
Informations about the package laravel-adminlte
laravel-adminlte
An easy way to integrate AdminLTE into your laravel applications.
- Introduction
- Installation
- Overriding Laravel Authentication Views
- Configuration
- Blade Templates (Layout, Component and Partial Views)
- Main Layout
- Page Component
- Box Component
- Table Box Component
- Info Box Component
- [Optional] Overrriding the default views
1. Introduction
This package depend on other packages under the hood, these packages are:
2. Installation
You can install laravel-adminlte
using composer cli by running:
Then run the following command to publish the required assets and files:
3. Overriding Laravel Authentication Views
After following the steps in Authentication Quick Start you can replace the created authentication views by the adminlte views by running the following command:
4. Configuration
After publish the configuration files in step 1 a two configuration files will be published config/adminlte.php
and config/breadcrumbs.php
.
You can take a look at Laravel Breadcrumbs Documentation for the configuration details about config/breadscrumbs.php
file.
5. Blade Templates (Layout, Component and Partial Views)
This package include a layout and components that wraps the most of adminlte elements. It is recommended to read more about layouts in AdminLTE documentation.
1. Main Layout
This is the main Think of the main layout as a container for including your content within adminlte header and sidebar. The following is an example of using the adminlte::layout.main
:
Note: the content will be wrapped automatically within
<div class="content-wrapper"></div>
.
2. Page Component
The page component is a container for your content that contain <section class="content-header"></section>
for holding title and breadcrumbs and <section class="content"></section>
for holding the page content.
Example:
Notes:
The options
sub_title
andbreadcrumb
are optional.The page component is responsible for displaying the flash messages.
The BREADCRMB_NAME is the name of your defined breadcrumb in
routes/breadcrumbs.php
file.
Example with sending data to breadcrmbs:
3. Box Component
The box component is a wrapper for AdminLTE box. Example code:
A more advanced example:
Note: the supported styles are
default
,primary
,info
,warning
,success
anddanger
.
4. Table Box Component
The table box component can be used to put a table directly within an adminlte box component. Example usage:
Note:
The component will automatically render the pagination links.
You don't need to handle empty collection by yourself, the view will display a helpful message if the collection is empty.
5. Info Box
The info box component is a wrapper for AdminLTE Info Box. Example usage:
Or:
6. [Optional] Overrriding the default views
You are free to modify the package views, If you wish you can run the following command:
Now, you can edit the views in resources/views/vendor/adminlte
.
Note: It is NOT RECOMMENDED to publish the package views because it will mute any future updates and bugfixes. So do not publish the views unless you know what you are doing.
All versions of laravel-adminlte with dependencies
illuminate/support Version ~5.5|^6.0|^7.0|^8.0
laracasts/flash Version ^3.0
diglactic/laravel-breadcrumbs Version ^6.0