danielsundermeier / laravel-make
Description.
Installs: 62
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/danielsundermeier/laravel-make
Requires (Dev)
- orchestra/testbench: ^6.2
- phpunit/phpunit: ^9.4
This package is auto-updated.
Last update: 2025-10-10 23:48:38 UTC
README
Extended Laravel Make Commands. Creates Tests, Views and a policy with stubs.
Installation
You may install the package via Composer:
composer require danielsundermeier/laravel-make
After that you may copy the stubs.
php artisan make:install
Usage
Use your make commands just like before.
Make Model
php artisan make:model Model -a
This will create additionaly:
- Unit Test
- ControllerTest
- Views
- index
- show
- edit
- Policy
Parent Option
The parent
Option will create a nested Controller and a nested Test
php artisan make:model Model -a --parent=Parent php artisan make:test ModelTest --parent=Parent
Make Views
php artisan make:view model/index
Make Traits
php artisan make:trait Foo\\Bar