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

demontpx/user-bundle

View on GitHub
Deep Wiki
Context7

DemonTPx user bundle

This couples the FOSUserBundle to my Symfony apps

Installation

Add the user bundle to your symfony project:

$ compose require demontpx/user-bundle

Configuration

User roles can be added in your config/packages/demontpx_user.yaml:

demontpx_user:
    roles:
        ROLE_ADMIN: Administrator
        ROLE_GROUP_MANAGER: Group manager
        ROLE_SUPER: Super user

ORM Data fixtures for testing can be added in config/packages/test/demontpx_user.yml:

demontpx_user:
    fixtures:
        user: ~
        admin: { roles: [ROLE_ADMIN] }
        super_user: { roles: [ROLE_ADMIN, ROLE_SUPER] }

Users will get the same password as the user name, and you will be able to use the UserWebTestCase class from the util bundle for your user-aware functional tests. You will also need to add this to your config/packages/test/security.yml to enable this:

security:
    firewalls:
        main: # Replace this with your firewall name
            http_basic: ~

Additional javascript and stylesheets

A SCSS file is located at assets/user-bundle.scss which could be imported.

Some elements have the select2 class which could be enhanced by enabling select2 on them.

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.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
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