aminuddin12 / insider-pack
Paket modular Laravel untuk mengelola pengguna internal (staf, admin, developer) secara terpisah.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/aminuddin12/insider-pack
Requires
- php: ^8.2
- spatie/laravel-permission: ^6.4
README
A Powerfull Package
Short Information
A modular Laravel package to manage internal users (staff, admins, developers) separately from the public user system. It comes with its own authentication, profile management, roles & permissions, and a powerful documentation system.
About Insider Pack
InsiderPack is a local Laravel package, tailor-made for the Quanta application, providing a complete and isolated ecosystem for internal user management. Instead of mixing your staff and admin logic with your public-facing users, InsiderPack segregates it into its own modular and maintainable module.
This package introduces the "Insider" systemβa completely separate user entity with its own tables, models, and authentication guard. This allows you to build complex back-office features or admin panels without interfering with your application's main user flow.
Key Features
- π Separate Authentication: Its own login (
api/insider/login) and registration system, using Sanctum tokens under the 'insider' guard. - βοΈ Database-Driven Configuration: Critical settings like registration allowance (
allow_registration) and documentation access (documentation_is_public) can be changed dynamically through the database, with a fallback to the config file. - π€ Complete Profile Management: A comprehensive database structure for personal data, addresses, and employment details (
InsiderProfile). - π‘οΈ Roles & Permissions Integration: Fully integrated with
spatie/laravel-permissionunder the 'insider' guard for granular access control. - π Built-in Documentation System: A full-featured documentation module with versioning, categories, languages, revisions, and public/private access control.
- β‘ Custom Code Generators: Speed up development with custom Artisan commands (
insider:make-*) to generate Models, Controllers, and more directly within the package directory. - π One-Command Installation: Simply run
php artisan install:insider-packto automatically publish assets, run migrations, and seed initial data.
Installation
This package is designed for a seamless setup process using its custom Artisan command.
-
Require the Package Add the package to your main
composer.jsonfile and update your autoloader.- In your root
composer.json, add the repository and require the package:"require": { "aminuddin12/insider-pack": "@dev" }, "repositories": [ { "type": "path", "url": "Packages/Aminuddin12/InsiderPack" } ]
- Run
composer dump-autoload.
- In your root
-
Run the Install Command Execute the following command from your project's root directory. This single command will handle everything.
php artisan install:insider-pack
This command will:
- Publish the
insiderpack.phpconfiguration file. - Run all necessary database migrations.
- Seed the database with default roles, permissions, and settings.
- Clear relevant caches.
- Publish the
Configuration
After installation, a configuration file will be available at config/insiderpack.php.
<?php return [ 'allow_registration' => env('INSIDER_ALLOW_REGISTRATION', false), 'documentation_is_public' => env('DOCUMENTATION_IS_PUBLIC', true), ];