Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

io-digital/laravel-inputs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

laravel-inputs

Currently the collection consists of the folowing:

  • Checkbox
  • Input
  • Select
  • Textarea

Usage

Textarea

@include('location-to-partial.textarea', ['field_name' => 'description', 'model' => $item])

Select

@include('location-to-partial.select', [
                        'field_name' => 'gender',
                        'option_list' => $gender,
                        'selected_option' => old('gender') ?: $selectedGender
                    ])

@include('location-to-partial.select', [
                    'field_name' => 'animal',
                    'option_list' => $animals,
                    'selected_option' => $selectedAnimal,
                    'data_attribute' => 'extra-info',
                    'data_value' => 'extra_info'
                ])

Input

@include('location-to-partial.input', ['input_type' => 'text', 'field_name' => 'last_name', 'model' => $item])
@include('location-to-partial.input', ['input_type' => 'email', 'field_name' => 'email', 'model' => $item])
@include('location-to-partial.input', ['input_type' => 'file', 'field_name' => 'document', 'accept' => 'application/pdf,image/gif'])

Checkbox

@include('location-to-partial.checkbox', ['field_name' => 'remember_me', 'checked' => $item['remember_me'], 'model' => $item])

About

Collection of input templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages