PHPackages                             shrft/laravel-admin-bar - 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. [Framework](/categories/framework)
4. /
5. shrft/laravel-admin-bar

ActiveLibrary[Framework](/categories/framework)

shrft/laravel-admin-bar
=======================

Add admin toolbar to the front side of your website.

v0.0.1(7y ago)12271MITPHPPHP &gt;= 7.0.0CI failing

Since Feb 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/shrft/laravel-admin-bar)[ Packagist](https://packagist.org/packages/shrft/laravel-admin-bar)[ RSS](/packages/shrft-laravel-admin-bar/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Introduction
============

[](#introduction)

This package help you add Wordpress like admin bar to your Laravel application. Admin bar is an easy-to-access toolbar to your admin pages.

[![admin-bar](https://raw.githubusercontent.com/shrft/laravel-admin-bar/master/resources/images/adminbar-image.png)](https://raw.githubusercontent.com/shrft/laravel-admin-bar/master/resources/images/adminbar-image.png)

Supported Version
=================

[](#supported-version)

- laravel/framework &gt;= 5.5

Installation
============

[](#installation)

To instal laravel-admin-bar, require it by Composer:

```
composer require shrft/laravel-admin-bar

```

Once Composer is done, run the following command:

```
php artisan vendor:publish --provider="Shrft\AdminBar\AdminBarServiceProvider"

```

**If you visit your page, you already have Admin bar!**

Basic Usage
===========

[](#basic-usage)

You can configure how and when admin bar should be shown via the configuration file called `adminbar.php`. If you have already run the publish command above, you should already have this file under the config directory.

The following is the default setup of the `adminbar.php`You can learn how to configure Admin Bar from the doc blocks of this file.

```
return array(

    /**
     *
     * Change this to false to disable admin bar
     *
     * */
    'enabled'=>true,

    /**
     *
     * Please specify your admin pages' url so that Admin Bar does not show up in
     * your admin pages.
     *
     * The default is 'admin/*'
     * The pass is checked with Illuminate\Http\Request::is().
     *
     * */
    'excludes' => 'admin/*',

    /**
     *
     * In order to show Admin Bar only for logged in admin users,
     * please specify how to tell if current visitor is logged in and also an admin
     * user.
     *
     * As a default, we just return true.
     *
     * */
    'is_admin' => function(){

       // This is an example code.
       //
       // if( Auth::user() &&  Auth::user()->isAdmin()){
       //     return true;
       // }
       // return false;

        return true;
    },
    /**
     *
     * Specify links to show on Admin Bar.
     *
     * */
    'menus' => array(
        ['title'=>'Admin Top', 'path'=>'/admin'],
        ['title'=>'Add a post', 'path'=>'/admin/post/new'],
        // you can pass callback to the path
        ['title'=>'Edit a post', 'path'=>function($request){

            // this is an example of how you generate pass dynamically.

            if($request->is('post/*')){
                $postid = $request->route('id');
                return '/admin/post/edit/' . $postid;
            }

            // if you return false, this link is not displayed.
            return false;
        }],
        // pass an array to path for dropdown menu.
        ['title'=>'Drop Down', 'path'=>[
                                 ['title'=>'Option1', 'path'=>'/path/to/option1'],
                                 ['title'=>'Option2', 'path'=>'/path/to/option2']
                                ]
        ],
        ),
);
```

Lincense
========

[](#lincense)

Laravel Admin Bar is open-sourced software licensed under the MIT license.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.6% 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 ~0 days

Total

2

Last Release

2699d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/952f6a71b7be56045069d39d2678736286123c0f88328836f33127c5537d6813?d=identicon)[shrft](/maintainers/shrft)

---

Top Contributors

[![shrft](https://avatars.githubusercontent.com/u/7588894?v=4)](https://github.com/shrft "shrft (41 commits)")[![stevelacey](https://avatars.githubusercontent.com/u/289531?v=4)](https://github.com/stevelacey "stevelacey (1 commits)")

---

Tags

frameworklaraveladmin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shrft-laravel-admin-bar/health.svg)

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

###  Alternatives

[laravel/laravel

The skeleton application for the Laravel framework.

84.5k62.4M1.0k](/packages/laravel-laravel)[orchid/platform

Platform for back-office applications, admin panel or CMS your Laravel app.

4.8k2.5M66](/packages/orchid-platform)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[unopim/unopim

UnoPim Laravel PIM

10.3k2.2k](/packages/unopim-unopim)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3861.7k](/packages/codewithdennis-larament)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11914.4k42](/packages/kompo-kompo)

PHPackages © 2026

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