Skip to content

Commit

Permalink
Merge pull request #10 from kgrzelak/dev
Browse files Browse the repository at this point in the history
Documentation example update
  • Loading branch information
kgrzelak authored Jun 30, 2024
2 parents 5c84943 + 5bae80a commit 595d58a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ php artisan vendor:publish --provider="Kgrzelak\LaravelForm\LaravelFormServicePr

```php
Form::input()
->setName('input-name')
->setType('text')
->setValue('input-value')
->setPlaceholder('input-placeholder')
->name('input-name')
->type('text')
->value('input-value')
->placeholder('input-placeholder')
->setClass('form-control')
->setAttributes(['readonly' => 'readonly']);
```
->addClass('mt-5')
->attribute('readonly', 'readonly')
->attribute('required', 'required');
```

0 comments on commit 595d58a

Please sign in to comment.