inisiatif/user
inisiatif/user adalah paket autentikasi untuk aplikasi Inisiatif Zakat Indonesia. Mendukung Laravel 9–11 dan PHP 8.1–8.3, menyediakan migrasi, konfigurasi nama tabel, serta opsi mengganti model (User, Branch, Employee, dll).
Pros:
employees, volunteers, and branches, aligning with organizational hierarchies (useful for enterprise/NGO use cases like Inisiatif Zakat).Cons:
intranet_id in branches) may not generalize to other projects.public.users for PostgreSQL), but assumes standard Laravel migrations.auth.providers.users.model to Inisiatif\Package\User\Models\User, which may conflict with existing auth configurations (e.g., custom guards).services.passport keys, which could clash with pre-existing OAuth setups.hashing_password_before_attempt) or Passport SSL disabling lack clarity on edge cases (e.g., security implications).employees, volunteers, branches) map to our user hierarchy? If not, can we extend it?hashing_password_before_attempt = true for performance/security?composer require inisiatif/user).php artisan vendor:publish --tag=user-migrations --tag=user-config).auth.providers.users.model in config/auth.php.services.passport in config/services.php (if using OAuth2).php artisan migrate) or manually adapt existing tables to match the package’s schema.users table, map roles to employees/volunteers).routes/api.php:
User\Routes::authToken();
User\Routes::userToken();
User\Routes::userProfile();
User\Routes::personalIdentification();
routes/web.php:
User\Routes::passport();
laravel/passport (≥10.x for Laravel 11).bcmath for hashing is standard).users guard. Ensure no other guards rely on the old User model.config/cache.php settings.employees, volunteers).config/user.php.intranet_id) may require forks if the package stagnates.inisiatif/user, Sanctum, and Passport for breaking changes.spatie/laravel-permission for roles) if issues arise.How can I help you explore Laravel packages today?