PHPackages                             juliomotol/laravel-admin-panel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. juliomotol/laravel-admin-panel

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

juliomotol/laravel-admin-panel
==============================

This is my package laravel-admin-panel

v0.1.1(3y ago)113[1 PRs](https://github.com/juliomotol/laravel-admin-panel/pulls)MITPHPPHP ^8.1

Since Jun 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/juliomotol/laravel-admin-panel)[ Packagist](https://packagist.org/packages/juliomotol/laravel-admin-panel)[ Docs](https://github.com/juliomotol/laravel-admin-panel)[ RSS](/packages/juliomotol-laravel-admin-panel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (16)Versions (4)Used By (0)

Laravel Admin Panel
===================

[](#laravel-admin-panel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6e4c90746af3f8b3903ea6d85fc4302f9b58eaafe554e677fd9427719a7049f4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a756c696f6d6f746f6c2f6c61726176656c2d61646d696e2d70616e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juliomotol/laravel-admin-panel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a212d58b687194a3c89a1418b7e60800622d387a1ef01aabcb2e0153e0cd33b2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a756c696f6d6f746f6c2f6c61726176656c2d61646d696e2d70616e656c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/juliomotol/laravel-admin-panel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/3d0313a01dafc8d9458092fab755730c51fe219f1c24975e4137b4e01349c284/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a756c696f6d6f746f6c2f6c61726176656c2d61646d696e2d70616e656c2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/juliomotol/laravel-admin-panel/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/28dd3fa865cfa7d141026e17350ad1ceca90efa999f4050ff111fb44554145f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a756c696f6d6f746f6c2f6c61726176656c2d61646d696e2d70616e656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/juliomotol/laravel-admin-panel)

A simple [CoreUI](https://coreui.io/) admin panel template with sidebar navigation management.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require juliomotol/laravel-admin-panel
```

After installing, publish its assets using the `admin-panel:install` Artisan command.

```
php artisan admin-panel:install
```

> Add a `--no-assets` option if you want to [build your own assets](#build-your-own-assets).

If you prefer to use the provided assets you should publish the assets with:

```
@php artisan vendor:publish --tag=admin-panel-assets
```

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:

```
"scripts": {
    "post-update-cmd": [
        "@php artisan vendor:publish --tag=laravel-assets --ansi --force",
        "@php artisan vendor:publish --tag=admin-panel-assets --ansi --force"
    ]
}
```

Include the assets by adding the following Blade directives in the head tag, and before the end body tag in your template.

```

        ... @adminPanelStyle

        ... @adminPanelScript

```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-admin-panel-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-admin-panel-views"
```

Usage
-----

[](#usage)

### Adding the component to your template

[](#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 `` tags.

> The `` slot can also accept an `href` attribute that will be passed to the `` tag enclosing the logo.

You can add your own footer with:

```

            Copyright &copy; {{ date('Y') }}

```

### Sidebar &amp; Account Navigation

[](#sidebar--account-navigation)

In your `AdminPanelServiceProvider`, you can build your sidebar and account dropdown navigation by:

```
class AdminPanelServiceProvider extends AdminPanelApplicationServiceProvider
{
    protected function build(AdminPanelManager $adminPanel): void
    {
        $adminPanel->sidebar()
            ->addItem('Dashboard', 'admin.dashboard')
            ->addGroup(
                'Access',
                fn (NavigationGroup $group) => $group
                    ->addItem(
                        'Users',
                        callback: fn (NavigationItem $item) => $item
                            ->additem('Admin', 'admin.users.admins.index')
                            ->additem('Clients', 'admin.users.clients.index')
                    )
                    ->addItem('Roles', 'admin.roles')
            );

        $adminPanel->account()
            ->addItem('My Profile', 'admin.my-profile.index');
            ->addItem('Logout', 'auth.logout');

        $adminPanel->setAccountAvatarResolver(fn () => Auth::user()->avatar())
    }
}
```

#### Adding Navigation Items

[](#adding-navigation-items)

You can further customize the navigation item with by passing a closure:

```
$adminPanel->sidebar()
    /**
     * @param string    $title
     * @param ?string   $route      Can either be a named route or a url
     * @param array     $parameters The parameters for the named route
     * @param \Closure  $callback
     */
    ->addItem('Inquiries', 'admin.inquiries', callback: fn (NavigationItem $item) => ...)
```

> The `NavigationItem` uses Laravel's `Conditionable` trait. You can use `when()` and `unless()` methods to customize it.

You can add an icon class with:

```
$adminPanel->sidebar()
    ->addItem(
        'Inquiries',
        'admin.inquiries',
        callback: fn (NavigationItem $item) =>$item->withIconClass('cil-notes')
    );
```

> The assets comes bundled with [CoreUI Icons](https://icons.coreui.io/icons/).

> **NOTE: The icon will not be shown in the account dropdown.**

You can add a badge with:

```
$adminPanel->sidebar()
    ->addItem(
        'Inquiries',
        'admin.inquiries',
        callback: fn (NavigationItem $item) =>$item->withBadge(
            /**
             * @param string|\Closure   $title
             * @param BadgeStyle        $style
             */
            Badge::make(
                fn() => Inquiries::isUnread()->count(), // Also accepts a string
                BadgeStyle::SUCCESS
            )
        )
    );
```

> Available badge styles are:
>
> ```
> BadgeStyle::PRIMARY
> BadgeStyle::SECONDARY
> BadgeStyle::INFO
> BadgeStyle::SUCCESS
> BadgeStyle::WARNING
> BadgeStyle::ERROR
> ```

You can also add a dropdown with:

```
$adminPanel->sidebar()
    ->addItem(
        'Inquiries',
        'admin.inquiries',
        callback: fn (NavigationItem $item) =>$item->addItem(...)
    );
```

> **NOTE: The dropdown will only be shown in the sidebar. No icons will be show to the dropdown items either.**

#### Adding Navigation Groups

[](#adding-navigation-groups)

You can add items within the navigation group with by passing a closure:

```
$adminPanel->sidebar()
    /**
     * @param string    $title      The title shown for this navigation group
     * @param \Closure  $callback   A closure to modify
     */
    ->addGroup(
        'CMS',
        fn (NavigationGroup $group) => $group->addItem('Pages', 'admin.pages')
            ->addItem('Blocks', 'admin.blocks')
            ->addItem('Meta', 'admin.meta')
    );
```

> The `NavigationGroup` uses Laravel's `Conditionable` trait. You can use `when()` and `unless()` methods to conditionaly add items.

#### Setting an Account Avatar

[](#setting-an-account-avatar)

You can display a different account avatar with:

```
$adminPanel->setAccountAvatarResolver(fn () => Auth::user()->avatar());
```

### Build your own assets

[](#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:

```
php artisan admin-panel:install --no-assets
```

Then install the asset deps via NPM:

```
npm install @coreui/coreui @coreui/icons @coreui/utils simplebar --save-dev
```

See the [`/assets`](assets/) as a starting ground for your assets.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Julio Motol](https://github.com/juliomotol)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

1422d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21353103?v=4)[Julio Motol](/maintainers/juliomotol)[@juliomotol](https://github.com/juliomotol)

---

Top Contributors

[![juliomotol](https://avatars.githubusercontent.com/u/21353103?v=4)](https://github.com/juliomotol "juliomotol (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

admin-templatecoreuilaravellaraveljuliomotollaravel-admin-panel

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/juliomotol-laravel-admin-panel/health.svg)

```
[![Health](https://phpackages.com/badges/juliomotol-laravel-admin-panel/health.svg)](https://phpackages.com/packages/juliomotol-laravel-admin-panel)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
