PHPackages                             matthc/laradmin - 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. matthc/laradmin

AbandonedArchivedLibrary

matthc/laradmin
===============

Admin package for laravel

0.1.4(10y ago)51071MITPHP

Since Jan 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Matth--/laradmin)[ Packagist](https://packagist.org/packages/matthc/laradmin)[ RSS](/packages/matthc-laradmin/feed)WikiDiscussions master Synced 2mo ago

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

\#Laradmin This is an admin package for Laravel with roles and permissions integrated. This package is still under development.

\##Installation Install the package with the following command

```
$ composer require matthc/laradmin dev-master

```

This command will pull in 2 packages:

- Laradmin: the admin package
- Privileges: the package for roles and permissions

I will write here how to initialize everything for both of these packages.

After the packages are installed, add the following providers to the providers array in config/app.php

```
'providers' => [
        ...
        MatthC\Privileges\PrivilegesServiceProvider::class,
        MatthC\Laradmin\LaradminServiceProvider::class,
],

```

Next, publish the vendor files with the following command:

```
php artisan vendor:publish

```

Run the migrations

```
php artisan migrate

```

\###Specific settings and commands for the privileges (roles and permissions) You can change some configuration for the roles and permissions package in config/privileges.php. After doing the changes you can add default roles and permissions with the following command:

```
php artisan privileges:db:seed

```

If you also want to add some users with roles attached, run the following command:

```
php artisan privileges:db:users

```

If you want everything to work you have to add the following trait to your User model

```
use MatthC\Privileges\Traits\PrivilegesUserTrait;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use PrivilegesUserTrait;
    ...

}

```

And for some routes to work you have to add 2 middlewares in app/Http/kernel.php

```
protected $routeMiddleware = [
		 ...
        'role' => \MatthC\Privileges\Middleware\PrivilegesRoleMiddleware::class,
        'permission' => \MatthC\Privileges\Middleware\PrivilegesPermissionMiddleware::class,
];

```

\###Specific settings for the Laradmin package First change the redirect if authenticated in app/Http/Middleware/RedirectIfAuthenticated.php to the prefix you have in your config/laradmin.php file.

In app/Http/Middleware/Authenticate.php : change the redirect link.

```
public function handle($request, Closure $next, $guard = null)
{
    if (Auth::guard($guard)->guest()) {
        if ($request->ajax()) {
            return response('Unauthorized.', 401);
        } else {
            return redirect()->guest('[prefix_from_laradmin_setting/login');
        }
    }

    return $next($request);
}

```

That's about it

\###Add items to the menu In config/laradmin.php there is a menu-setting. Here you can add specific menu-items with their route.

```
'menu' => [
    'Welcome' => [
        'route' =>  'welcome', //has to be a route
        'icon' => 'glass', // the font-icon you want
        'roles' => ['admin', 'author'], // roles needed to see this link
    ]
],

```

You can also make a submenu: it is important that you don't have a route parameter in the array

```
'menu' => [
    'Welcome' => [
        'icon' => 'glass', // the font-icon you want
        'roles' => ['admin', 'author'], // roles needed to see this link
        'submenu' => [
        		'Add a message' => 'messages.add' //the route
        ]
    ]
],

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

5

Last Release

3755d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/687fe6f7f3d32b31c3fe28e86defa71d1461c5f83eaaffa60164f947468f4ecc?d=identicon)[matth--](/maintainers/matth--)

### Embed Badge

![Health badge](/badges/matthc-laradmin/health.svg)

```
[![Health](https://phpackages.com/badges/matthc-laradmin/health.svg)](https://phpackages.com/packages/matthc-laradmin)
```

###  Alternatives

[adr1enbe4udou1n/laravel-boilerplate

Laravel 5.7 Boilerplate based on Bootstrap 4 and Tabler for Backend.

2561.9k](/packages/adr1enbe4udou1n-laravel-boilerplate)[hieu-le/laravel-dashboard

A starting template for Laravel 5 dashboards

312.6k](/packages/hieu-le-laravel-dashboard)[wanglelecc/laracms-framework

A LaraCMS Framework.

132.2k1](/packages/wanglelecc-laracms-framework)

PHPackages © 2026

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