tir / mehr-panel
The admin panel for Tir framework
Installs: 1 409
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Language:JavaScript
pkg:composer/tir/mehr-panel
Requires
- tir/crud: *
- dev-master
- 12.x-dev
- 12.7.5.x-dev
- 12.7.1.x-dev
- 12.7.1
- 12.5.x-dev
- v11.x-dev
- 11.1.x-dev
- v8.x-dev
- v8.1.4
- 8.1.3
- 8.1.2
- 8.1.1
- 8.1
- v8.0.6
- v8.0.5
- v8.0.4-beta
- v8.0.3-beta
- 8.0.2-beta
- v8.0.1-beta
- v8.0-beta
- v3.x-dev
- v3.4.4-beta
- v3.4.3-beta
- v3.4.2-beta
- v3.4.1-beta
- v3.4.0-beta
- v3.3.9-beta
- 3.3.8-beta
- 3.3.7-beta
- 3.3.6-beta
- 3.3.4-beta
- 3.3.3-beta
- v3.3.2-beta
- v3.3.1-beta
- v3.3-beta
- v3.0.1-beta
- v3.0-beta
- v2.x-dev
- v2.4.1
- v2.4
- v2.0.1
- v2.0
- v1.x-dev
- v1.4
- v1.3
- v1.2.3
- v1.2.2
- v1.2
- v1.1
- v1.0
- dev-12.7.1-dev
- dev-12.2-dev
- dev-v12.1-dev
- dev-v11.1-dev
- dev-dev/add-testing-layer
- dev-dev/newfeature-bugfix-by-tirdad
- dev-develop
- dev-dev/v2.0
This package is auto-updated.
Last update: 2026-02-15 07:51:44 UTC
README
A Laravel package for managing an admin panel.
Installation
-
Install the package via Composer:
composer require mehr-panel/mehr-panel
-
Publish the configuration file (optional, to customize prefixes):
php artisan vendor:publish --tag=mehr-panel-config
-
Publish assets:
php artisan vendor:publish --tag=mehr-panel-assets --force
-
Publish customization files (optional):
php artisan vendor:publish --tag=mehr-panel-customize
-
Install frontend dependencies:
npm install
-
Build assets for production:
npm run prod
Configuration
To customize the URL prefixes for the admin panel, you can either:
- Edit the
config/mehr-panel.phpfile after publishing it. - Set the
MEHR_PANEL_PREFIXenvironment variable in your.envfile.
Example in .env:
MEHR_PANEL_PREFIX=admin,dashboard
This will make the admin panel accessible at both /admin and /dashboard. If not set, the default prefix is admin.
Configuration File
The config/mehr-panel.php file contains:
<?php return [ 'panel' => [ 'prefix' => array_filter(explode(',', env('MEHR_PANEL_PREFIX', 'admin'))), ], ];
Customization
To override styles, create a custom.scss file in the /admin/assets/ directory after publishing assets.
Routes
The admin panel is accessible at /{prefix} for each prefix defined in the panel.prefix array (default: admin). For example, if MEHR_PANEL_PREFIX=admin,dashboard is set in .env, the admin panel will be available at both /admin and /dashboard.