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

Role Provider Array Bundle Laravel Package

dcs/role-provider-array-bundle

View on GitHub
Deep Wiki
Context7

Build Status Coverage Status

DCSRoleProviderArrayBundle

This bundle provides the provider implementation for DCSRoleCoreBundle. The logic of this provider revolves around the role management through array. Then the database of roles available in the application will be configured in the bundle settings.

There is a trait (UserRoleArray) that will expose some utility methods for role management to use in the implementation of the User class.

Installation

Prerequisites

This bundle requires DCSRoleCoreBundle.

Require the bundle

Run the following command:

$ composer require dcs/role-provider-array-bundle "~1.0@dev"

Composer will install the bundle to your project's vendor/dcs/role-provider-array-bundle directory.

Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
	$bundles = array(
		// ...
		new DCS\Role\Provider\ArrayBundle\DCSRoleProviderArrayBundle(),
		// ...
	);
}

Configure

Now that you have properly enabled this bundle, the next step is to configure it to work with the specific needs of your application.

Add the following configuration to your config.yml.

dcs_role_provider_array:
    roles: LIST_OF_ROLES_AS_ARRAY

The following lines provide the configuration for the DCSRoleCoreBundle.

dcs_role_core:
    provider: dcs_role.provider.array

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

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.
cocosmos/filament-sticky-save-bar
patrickbussmann/oauth2-apple
3brs/enterprise-security-bundle
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