hidenari / model-sample
model sample
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/hidenari/model-sample
Requires
- php: ^8.4
- ext-http: *
Requires (Dev)
- laravel/pint: ^1.26
- pestphp/pest: ^4.1
- phpstan/phpstan: ^2.1
README
Person Model Sample on php version 8.4 or later.
About this package
Person Model two programming pattern.
- public name
- public age
- public grade
Person Capsule Model
- public private(set) name
- public private(set) age
- public setName()
- public setAge()
Bind Check
Model bind check with attribute
- name(4 to 15 length with added [Mr.] include)
Model bind check with trait
- age(over 15)
Update Rules
When updating, execute the following command.
herd coverage ./vendor/bin/pest --coverage
./vendor/bin/pest
./vendor/bin/pint
./vendor/bin/phpstan analyse src --level=10
License
This utility is open-sourced software licensed under the MIT license.