Skip to content

A personal collection of blade directives

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

stekel/laravel-blade-directives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Blade Directives

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->$attribute or from the value of old($attribute)
@optionValue($model, $attribute, $default) Sets the select option to "selected", either from the given $model->$attribute or from the value of old($attribute)
@checkboxValue($model, $attribute) Sets the checkbox to "checked", either from the given $model->$attribute or from the value of old($attribute)
@checkboxValueFromArray($model, $attribute, $array) Sets the checkbox to "checked", if $array contains either $model->id or old($attribute)

About

A personal collection of blade directives

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages