Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

User Bundle Laravel Package

bengor/user-bundle

View on GitHub
Deep Wiki
Context7

Configuring routes used

This bundle generates all routes required to perform all the use cases on the fly. By default name and paths for each use case have been defined as you can see in the following configuration file:

# app/config/config.yml

ben_gor_user:
    user_class:
        your_user:
            # ...
            routes:
                security:
                    login:
                        name: bengor_user_user_login
                        path: /user/login
                    login_check:
                        name: bengor_user_user_login_check
                        path: /user/login-check
                    logout:
                        name: bengor_user_user_logout
                        path: /user/logout
                    success_redirection_route:
                        type: referer          # Also, it can be "force"
                        route: bengor_user_user_homepage
                    jwt:
                        name: bengor_user_user_jwt
                        path: /user/api/token
                sign_up:
                    name: bengor_user_user_sign_up
                    path: /user/sign-up
                    api_name: bengor_user_user_api_sign_up
                    api_path: /api/user/sign-up
                invite:
                    name: bengor_user_user_invite
                    path: /user/invite
                    success_redirection_route: ~
                    api_name: bengor_user_user_api_invite
                    api_path: /api/user/invite
                resend_invitation:
                    name: bengor_user_user_resend_invitation
                    path: /user/resend-invitation
                    success_redirection_route: ~
                    api_name: bengor_user_user_api_resend_invitation
                    api_path: /api/user/resend-invitation
                enable:
                    name: bengor_user_user_enable
                    path: /user/enable?confirmation-token={confirmation-token}
                    success_redirection_route: bengor_user_user_homepage
                    api_name: bengor_user_user_api_enable
                    api_path: /api/user/sign-up
                change_password:
                    name: bengor_user_user_change_password
                    path: /user/change-password
                    success_redirection_route: ~
                    api_name: bengor_user_user_api_change_password
                    api_path: /api/user/change-password
                request_remember_password:
                    name: bengor_user_user_request_remember_password
                    path: /user/remember-password
                    success_redirection_route: ~
                    api_name: bengor_user_user_api_remember_password
                    api_path: /api/user/remember-password
                remove:
                    name: bengor_user_user_remove
                    path: /user/remove
                    success_redirection_route: bengor_user_user_homepage
                    api_name: bengor_user_user_api_remove
                    api_path: /api/user/remove
            # ...

By default BenGorUserBundle generates the name and the path using the following rules:

  • For name: bengor_user_ + user_type_name + route_name
  • For path: / + user_type_name + / + route_name

In case you want to change some of the routes you need to override the configuration. For example, in case you want to change the login route for our employee user type you need to do the following:

# app/config/config.yml
ben_gor_user:
    user_class:
        employee:
            # ...
            routes:
                security:
                    login:
                        name: bengor_user_employee_login
                        path: /employee/new-login-route

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle