PHPackages                             tir/mehr-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. tir/mehr-panel

ActiveLibrary[Admin Panels](/categories/admin)

tir/mehr-panel
==============

The admin panel for Tir framework

12.8(1w ago)21.5k↓93.3%[1 issues](https://github.com/TirFramework/mehr-panel/issues)[1 PRs](https://github.com/TirFramework/mehr-panel/pulls)MITJavaScript

Since Mar 30Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/TirFramework/mehr-panel)[ Packagist](https://packagist.org/packages/tir/mehr-panel)[ RSS](/packages/tir-mehr-panel/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (63)Used By (0)

Mehr Panel
==========

[](#mehr-panel)

A Laravel package for managing an admin panel.

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

[](#installation)

1. Install the package via Composer:

    ```
    composer require mehr-panel/mehr-panel
    ```
2. Publish the configuration file (optional, to customize prefixes):

    ```
    php artisan vendor:publish --tag=mehr-panel-config
    ```
3. Publish assets:

    ```
    php artisan vendor:publish --tag=mehr-panel-assets --force
    ```
4. Publish customization files (optional):

    ```
    php artisan vendor:publish --tag=mehr-panel-customize
    ```
5. Install frontend dependencies:

    ```
    npm install
    ```
6. Build assets for production:

    ```
    npm run prod
    ```

Configuration
-------------

[](#configuration)

To customize the URL prefixes for the admin panel, you can either:

- Edit the `config/mehr-panel.php` file after publishing it.
- Set the `MEHR_PANEL_PREFIX` environment variable in your `.env` file.

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

[](#configuration-file)

The `config/mehr-panel.php` file contains:

```
