maadhih / reinforcement
Extended laravel support for APIs
Installs: 104
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/maadhih/reinforcement
Requires
- php: >=7.0
- danielstjules/stringy: ~3.1.0
- illuminate/config: 5.7.*
- illuminate/console: 5.7.*
- illuminate/container: 5.7.*
- illuminate/database: 5.7.*
- illuminate/support: 5.7.*
- illuminate/validation: 5.7.*
This package is auto-updated.
Last update: 2025-11-13 18:51:46 UTC
README
This package includes artisan generators out of the box:
reinforcement:migrationreinforcement:resourcereinforcement:controllerreinforcement:modelreinforcement:repositoryreinforcement:requestreinforcement:routereinforcement:validatorreinforcement:seeder
Usage
Step 1: Install Through Composer
composer require maadhih/reinforcement --dev
Step 2: Laravel Package Discovery
Run php artisan package:discover to make sure the package is discoverd by Laravel.
Step 3: Run Artisan!
You're all set. Run php artisan from the console, and you'll see the new commands in the reinforcement:* namespace section.
*Note: The commands will only be available when APP_ENV is set to local
Examples
Creating full resource bundles
php artisan reinforcement:resource ResourceOne ResourceTwo ResourceThree ...
Notice the format that we use, when giving the command more than 1 resource to create, we separate them with spaces
This would create the whole bundle required for the reinforcement module to work. This bundle includes:
Resource migrationResource controllerResource modelResource repositoryResource requestAdding the Resource route to the routes fileResource validatorResource seeder
Creating individual elements of resource
php artisan reinforcement:controller ResourceOne ResourceTwo ResourceThree ...
This would create the controllers for the required resources. This could be used with all the other available artisan commands.