forked from kgrzelak/laravel-form
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* gitignore * update * update * update * update * update * update * update * update * form alias * remove unused packages * form select options * textarea
- Loading branch information
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<textarea class="{{ $class }} @error($name) is-invalid @enderror" name="{{ $name }}" placeholder="{{ $placeholder }}" {{ $attributes }} {{ $required ? 'required' : '' }}>{{ old($name, $value) }}</textarea> | ||
@error($name) | ||
<span class="invalid-feedback" role="alert"> | ||
<strong>{{ $message }}</strong> | ||
</span> | ||
@enderror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace Kgrzelak\LaravelForm\Items; | ||
|
||
class FormTextarea extends BaseItem | ||
{ | ||
public function __construct () | ||
{ | ||
$this->class = config('laravel-form.textarea.class', 'form-control'); | ||
$this->viewName = 'textarea'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters