Download the PHP package juliomotol/laravel-admin-panel without Composer
On this page you can find all versions of the php package juliomotol/laravel-admin-panel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download juliomotol/laravel-admin-panel
More information about juliomotol/laravel-admin-panel
Files in juliomotol/laravel-admin-panel
Package laravel-admin-panel
Short Description This is my package laravel-admin-panel
License MIT
Homepage https://github.com/juliomotol/laravel-admin-panel
Informations about the package laravel-admin-panel
Laravel Admin Panel
A simple CoreUI admin panel template with sidebar navigation management.
Installation
You can install the package via composer:
After installing, publish its assets using the admin-panel:install
Artisan command.
Add a
--no-assets
option if you want to build your own assets.
If you prefer to use the provided assets you should publish the assets with:
To keep the assets up-to-date and avoid issues in future updates, we highly recommend adding the command to the post-autoload-dump
scripts in your composer.json
file:
Include the assets by adding the following Blade directives in the head tag, and before the end body tag in your template.
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Usage
Adding the component to your template
In your template:
You can add your own brand logos to the sidebar and header (only visible in mobile view) with:
Any additional attributes will be passed to their respective
<img>
tags.The
<x-slot:headerBrand>
slot can also accept anhref
attribute that will be passed to the<a>
tag enclosing the logo.
You can add your own footer with:
Sidebar & Account Navigation
In your AdminPanelServiceProvider
, you can build your sidebar and account dropdown navigation by:
Adding Navigation Items
You can further customize the navigation item with by passing a closure:
The
NavigationItem
uses Laravel'sConditionable
trait. You can usewhen()
andunless()
methods to customize it.
You can add an icon class with:
The assets comes bundled with CoreUI Icons.
NOTE: The icon will not be shown in the account dropdown.
You can add a badge with:
Available badge styles are:
You can also add a dropdown with:
NOTE: The dropdown will only be shown in the sidebar. No icons will be show to the dropdown items either.
Adding Navigation Groups
You can add items within the navigation group with by passing a closure:
The
NavigationGroup
uses Laravel'sConditionable
trait. You can usewhen()
andunless()
methods to conditionaly add items.
Setting an Account Avatar
You can display a different account avatar with:
Build your own assets
A set sensible default assets is provided to you, but if you want to implement your own build steps, during admin-panel:install
, add a --no-assets
option:
Then install the asset deps via NPM:
See the /assets
as a starting ground for your assets.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Julio Motol
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-admin-panel with dependencies
spatie/laravel-package-tools Version ^1.9.2
illuminate/contracts Version ^9.0
illuminate/console Version ^9.0
illuminate/support Version ^9.0
illuminate/view Version ^9.0