stekel / laravel-blade-directives
A personal collection of Laravel blade directives.
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/stekel/laravel-blade-directives
Requires
- php: >7.0
- illuminate/support: >5
Requires (Dev)
- phpunit/phpunit: ~6.0
README
A personal collection of Laravel blade directives.
Install
Via Composer
$ composer require stekel/laravel-blade-directives
Directives
| Function | Description | 
|---|---|
| @inputValue($model, $attribute) | Displays form input value, either from the given $model->$attributeor from the value ofold($attribute) | 
| @optionValue($model, $attribute, $default) | Sets the select option to "selected", either from the given $model->$attributeor from the value ofold($attribute) | 
| @checkboxValue($model, $attribute) | Sets the checkbox to "checked", either from the given $model->$attributeor from the value ofold($attribute) | 
| @checkboxValueFromArray($model, $attribute, $array) | Sets the checkbox to "checked", if $arraycontains either$model->idorold($attribute) |