krafthaus/bauhaususer
Adds a simple login/user system for the Bauhaus admin package. Installs via Composer, registers the service provider, updates Bauhaus auth permission to use Auth::check(), switches the auth model to BauhausUser\User, runs migrations, and creates users via Artisan.
Auth facade and Eloquent models.users table (or extends an existing one), requiring schema migrations. Potential conflicts if the project already has a user model (e.g., Laravel’s default App\User).Auth facade, so integration with Laravel Passport, Sanctum, or third-party auth (e.g., Firebase, Auth0) may require additional abstraction layers.App\User model? Will data migration be required?permission callback with Auth::check(). Does the project need granular role-based access control (RBAC) beyond basic auth?krafthaus/bauhaususer to composer.json.composer update.BauhausUserServiceProvider in config/app.php.auth.permission in packages/krafthaus/config/admin.php to use Auth::check().auth.model in app/auth.php to point to KraftHaus\BauhausUser\User.php artisan migrate --package=krafthaus/bauhaususer.php artisan bauhaus:user:create (incomplete command in README)./admin).Auth::check()). Custom auth drivers (e.g., LDAP) may need wrappers.auth middleware, ensure it aligns with the package’s session/guard setup.App\User, custom guards).App\User).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Bauhaus package breaks | Admin panel fails | Fork Bauhaus, implement fallback routes. |
| Migration conflicts | Data corruption | Backup DB, test migrations in staging. |
| Auth::check() bypassed | Unauthorized access | Add middleware validation layers. |
| GPL-2.0 license compliance issues | Legal risks | Audit codebase, consider alternative licenses. |
No user events (e.g., created) |
Custom logic fails | Extend package or use model observers. |
How can I help you explore Laravel packages today?