rohith016/admin-panel

Admin Panel Dashboard for Web Applications

dev-main 2025-01-21 11:07 UTC

This package is auto-updated.

Last update: 2025-01-21 11:07:25 UTC


README

A reusable Laravel package for admin panel

Features

Preloaded Admin views includes layouts, dashboard, profile Admin panel assets Admin route file

Installation

Step 1: Require the Package

Install the package via Composer:

composer require rohith016/admin-panel

composer require rohith016/admin-panel:dev-main --dev

composer require rohith016/admin-panel:^1.0

Step 2: Publish Resources

The package provides a range of resources (models, migrations, seeders, and factories). You can selectively publish resources using tags.

Step 3: Publish the Service Provider

After requiring the package, Laravel should automatically discover the service provider. If not, register it in config/app.php:

'providers' => [
    // Other Service Providers
    Rohith\EcommercePackage\EcommerceServiceProvider::class,
];

Usage

The package resources can be published to your Laravel application’s default structure as needed.

Publish All Resources

To publish all available resources (models, migrations, seeders, and factories), run:

php artisan vendor:publish --provider="Rohith\AdminPackage\AdminPanelServiceProvider"

Selective Publishing

Use the following commands to publish specific resources:

Publish Assets:

php artisan vendor:publish --tag=admin-panel-assets

Publish Views:

php artisan vendor:publish --tag=admin-panel-views

Publish Routes:

php artisan vendor:publish --tag=admin-panel-routes

Publish Config:

php artisan vendor:publish --tag=admin-panel-config

Pblish MenuServiceProvider:

- bootstrap\providers.php

return [
    .........
    App\Providers\MenuServiceProvider::class
];

Contributing

Contributions are welcome! Feel free to submit a pull request or open an issue for suggestions and improvements.

License

This package is open-source software licensed under the MIT license.