curvestech/laravel-roles

Simple role > permissions package for laravel apps.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/curvestech/laravel-roles

dev-main 2025-10-29 05:40 UTC

This package is auto-updated.

Last update: 2026-01-29 06:09:41 UTC


README

A simple package to add roles and permissions support to your Laravel application.

Features

  • Artisan command to install migrations for roles and permissions.
  • Migration stubs for roles, permissions, and pivot tables.

Installation

  1. Require the package via Composer:

    composer require curvestech/laravel-roles
    
  2. Register the service provider (if not using auto-discovery):

    // config/app.php
    'providers' => [
        Curvestech\LaravelRoles\RolesServiceProvider::class,
    ],

Usage

  1. Run the install command to publish migrations:

    php artisan roles:install
    
  2. Run migrations:

    php artisan migrate
    

Customization

  • Edit the migration stubs in src/stubs/ if you need to customize the tables.

License

MIT