Skip to content
Nav

Installation

composer require langsys/laravel-access-guard
Packagist version Monthly downloads License PHP 8.2+ Laravel 10 / 11 / 12
  1. Require the package:

    Terminal window
    composer require langsys/laravel-access-guard
  2. Publish and run migrations:

    Terminal window
    php artisan vendor:publish --tag=access-guard-migrations
    php artisan vendor:publish --tag=access-guard-config # optional
    php artisan migrate

Migrations are guarded with Schema::hasTable(), so publishing into an app that already has roles / permissions tables is a safe no-op.

Next: wire your models.

Feedback