Looking to hire Laravel developers? Try LaraJobs

laravel-make-model-plus maintained by tonegabes

Description
Generate model, permissions enum, policy, tests, and Laravel Filament resource scaffolding.
Last update
2026/06/11 23:45 (dev-main)
License
Links
Downloads
1

Comments
comments powered by Disqus

Filament Make Model

Latest Version on Packagist Total Downloads License

tonegabes/laravel-make-model-plus implement additional features envolving Filament resources and permissions enums.

Requirements

  • PHP 8.3+
  • Laravel 12 or 13
  • Filament 5

Installation

composer require tonegabes/laravel-make-model-plus

Optional: publish config and stubs.

php artisan vendor:publish --tag=laravel-make-model-plus-config
php artisan vendor:publish --tag=laravel-make-model-plus-stubs

Usage

php artisan make:model-plus Evento --resource=eventos

Available options

  • --resource=: Base permission key (for example, eventos)
  • --panel=: Filament panel id (defaults to admin)
  • --no-filament: Skip Filament resource generation
  • --migration
  • --factory
  • --seed
  • --force

Generated files

  • Model via make:model
  • app/Enums/Permissions/{Model}Permissions.php
  • app/Policies/{Model}Policy.php
  • tests/Unit/Enums/Permissions/{Model}PermissionsTest.php
  • tests/Feature/Policies/{Model}PolicyTest.php
  • Filament Resource with View page via make:filament-resource

When --no-filament is used, only model/domain scaffolding is generated.

Release checklist (v1.0.0)

  • Ensure package tests are green: vendor/bin/pest --compact
  • Ensure code style is clean: vendor/bin/pint --dirty --format agent
  • Update CHANGELOG.md (or release notes) with the final scope
  • Create git tag: v1.0.0
  • Push tag and trigger Packagist update