PHPackages                             webzera/lararoleadmin - 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. webzera/lararoleadmin

ActiveLibrary[Admin Panels](/categories/admin)

webzera/lararoleadmin
=====================

This is for separate admin panel control with Role based Permission

013HTMLCI failing

Since Jul 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/webzera/lararoleadmin)[ Packagist](https://packagist.org/packages/webzera/lararoleadmin)[ RSS](/packages/webzera-lararoleadmin/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0.0
- Laravel &gt;= 7.0

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

[](#installation)

> First, install laravel 7.0, and make sure that the database connection settings are correct.

> Make sure install auth,

```
php composer.phar require laravel/ui
php artisan ui vue --auth

```

> And Install

```
composer require webzera/lararoleadmin
  or
php composer.phar require webzera/lararoleadmin

```

> Add `php composer.phar require laracasts/flash` for flash messages.

Add Admin guard
---------------

[](#add-admin-guard)

> Auth guard \[admin\] defined config/auth.php file

Laravel uses guards for authentication which allows you to manage multiple authenticated instances from multiple tables. To create a new guard open the auth.php from the config directory:

```
'guards' => [
	[...],
	'admin' => [
            'driver' => 'session',
            'provider' => 'admins',
        ],
],
'providers' => [
	[...],
	'admins' => [
            'driver' => 'eloquent',
            'model' => Webzera\Lararoleadmin\Admin::class,
        ],
],
'passwords' => [
        [...],
        'admins' => [
            'provider' => 'admins',
            'table' => 'password_resets',
            'expire' => 60,
            'throttle' => 60,
        ],
    ],

```

```
php composer.phar dump-autoload or composer dump-autoload

```

Then run these commands to publish assets and config：

```
php artisan vendor:publish --provider="Webzera\Lararoleadmin\Providers\LararoleadminServiceProvider"

```

or the database seeder file need to update so add force command

```
php artisan vendor:publish --force

```

Add Middleware for check admin Role
-----------------------------------

[](#add-middleware-for-check-admin-role)

> In Http/Kenel.php add this line in

```
protected $routeMiddleware = [
	[...],
	'checkrole' => \App\Http\Middleware\CheckRole::class,
]

```

> add this line to main route/web.php file

```
Route::get('/admin', 'Admin\AdminController@index')->name('admin::home');

```

`php composer.phar dump-autoload` //must use before migration

`php artisan migrate:fresh`

`php artisan db:seed`

Add Text Editer for Page
------------------------

[](#add-text-editer-for-page)

> Install Laravel-filemanager

`composer require unisharp/laravel-filemanager`or `php composer.phar require unisharp/laravel-filemanager`

> Change url for `ImageBrowseUrl` and `ImageUploadUrl` in page create blade and edit blade.

> Like

```
  filebrowserImageBrowseUrl: '/ruddra/public/laravel-filemanager?type=Images',
  filebrowserImageUploadUrl: '/ruddra/public/laravel-filemanager/

```

> Laravel-filemanater Publish the package’s config and assets

```
php artisan vendor:publish --tag=lfm_config
php artisan vendor:publish --tag=lfm_public

```

and

```
php artisan route:clear
php artisan config:clear

```

> and add this routes in main route/web.php file

```
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth:admin']], function () {
 \UniSharp\LaravelFilemanager\Lfm::routes();
 });

```

> create symbolic link, check the public/storage folder not exist

```
 php artisan storage:link

```

> In PermissionController comment `$this->middleware('checkrole');` and click `Admin Role Permission` in side navigation button, And Uncomment.

> Edit APP\_URL in .env. file, APP\_URL=`http://localhost//public`

> Open in local `http://localhost/admin/login` in browser, admin user email : `webzera@webzera.com`admin password : `password` to login.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/89cb1a5cec4faca227565207da6c3771aa6caebe12c429fbceb5ba3dc64a287f?d=identicon)[webzera](/maintainers/webzera)

---

Top Contributors

[![webzera](https://avatars.githubusercontent.com/u/48677569?v=4)](https://github.com/webzera "webzera (18 commits)")

---

Tags

admin-dashboardlaravellaravel-packagephprole-based-access-control

### Embed Badge

![Health badge](/badges/webzera-lararoleadmin/health.svg)

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

###  Alternatives

[jeroennoten/laravel-adminlte

Easy AdminLTE integration with Laravel

4.0k4.8M43](/packages/jeroennoten-laravel-adminlte)[dmstr/yii2-adminlte-asset

AdminLTE backend theme asset bundle for Yii 2.0 Framework

1.1k1.8M67](/packages/dmstr-yii2-adminlte-asset)[dwij/laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like CRUD Generation, Module Manager, Media, Menus, Backups and much more

1.6k68.7k](/packages/dwij-laraadmin)[filament/spatie-laravel-media-library-plugin

Filament support for `spatie/laravel-medialibrary`.

1764.8M125](/packages/filament-spatie-laravel-media-library-plugin)[bezhansalleh/filament-exceptions

A Simple &amp; Beautiful Pluggable Exception Viewer for FilamentPHP's Admin Panel

193195.9k13](/packages/bezhansalleh-filament-exceptions)[filament/infolists

Easily add beautiful read-only infolists to any Livewire component.

1220.8M36](/packages/filament-infolists)

PHPackages © 2026

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