PHPackages                             curly-deni/laravel-permission-maker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. curly-deni/laravel-permission-maker

ActiveLibrary[Database &amp; ORM](/categories/database)

curly-deni/laravel-permission-maker
===================================

Laravel package to easily generate migration files for CRUD and single permissions based on spatie/laravel-permission.

v1.1.1(1y ago)0161MITPHPPHP ^8.0CI passing

Since Apr 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/curly-deni/laravel-permission-maker)[ Packagist](https://packagist.org/packages/curly-deni/laravel-permission-maker)[ Docs](https://github.com/curly-deni/laravel-permission-maker)[ GitHub Sponsors](https://github.com/curly-deni)[ RSS](/packages/curly-deni-laravel-permission-maker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (1)

Laravel Permission Maker
========================

[](#laravel-permission-maker)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3399b200a735999d4afad4ce498337d65850453185afdf95019112bc53ed65f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6375726c792d64656e692f6c61726176656c2d7065726d697373696f6e2d6d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/curly-deni/laravel-permission-maker)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0a46732f1be2b1e8a443a5204083797bed47d1a7a31ebcade396a0d9f83e1073/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6375726c792d64656e692f6c61726176656c2d7065726d697373696f6e2d6d616b65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/curly-deni/laravel-permission-maker/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/7f5a20d297b8c577c110f00e8c29881ca578489eb2492d449713b58d12e1c376/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6375726c792d64656e692f6c61726176656c2d7065726d697373696f6e2d6d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/curly-deni/laravel-permission-maker)

**Laravel Permission Maker** is a simple extension for [spatie/laravel-permission](https://github.com/spatie/laravel-permission) that automates the creation of permission migrations.
Quickly generate full CRUD permission sets or individual permissions using Artisan commands.

Features
--------

[](#features)

- 🔥 Quickly scaffold CRUD permissions for any resource.
- ✍️ Generate a migration for a single permission with one command.
- 📦 Seamlessly integrates with [spatie/laravel-permission](https://github.com/spatie/laravel-permission).
- 🚀 Clean, minimalistic, and developer-friendly.
- 🛠️ Fully customizable stub templates for advanced use cases.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require curly-deni/laravel-permission-maker
```

Publish the configuration file:

```
php artisan vendor:publish --tag="permission-maker-config"
```

Ensure that the Spatie permission migrations are published and migrated:

```
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="permission-migrations"
php artisan migrate
```

Configuration
-------------

[](#configuration)

The configuration file allows you to control which CRUD permissions are automatically generated when using the `permission:commit-crud` command.

Default configuration (`config/permission-maker.php`):

```
