rohith016 / admin-panel
Admin Panel Dashboard for Web Applications
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
Requires
- php: ^7.4|^8.0
This package is auto-updated.
Last update: 2025-02-01 06:37:38 UTC
README
A reusable Laravel package for admin panel
Screen Shots
- Login Page
- Dashboard
- Profile
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
Publish Models:
php artisan vendor:publish --tag=admin-panel-menu-model
Publish Migrations:
php artisan vendor:publish --tag=admin-panel-migrations
Publish Seeders:
php artisan vendor:publish --tag=admin-panel-seeders
Publish MenuServiceProvider:
php artisan vendor:publish --tag=admin-panel-menu-provider - bootstrap\providers.php return [ ......... App\Providers\MenuServiceProvider::class ];
Manage Register page with config data
- routes\auth.php // update this code if (config('adminlte.login.registration')){ Route::get('register', [RegisteredUserController::class, 'create']) ->name('register'); Route::post('register', [RegisteredUserController::class, 'store']); } else { Route::redirect('register', 'login')->name('register'); } // add this code in guest section Route::redirect('/', '/login')->name('home');
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.