Package Data | |
---|---|
Maintainer Username: | Sukohi |
Maintainer Contact: | capilano.sukohi@gmail.com (Sukohi) |
Package Create Date: | 2016-03-26 |
Package Last Update: | 2016-03-26 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:13:15 |
Package Statistics | |
---|---|
Total Downloads: | 9 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A Laravel package to easily display errors from validator.
Execute composer command.
composer require form-error:2.*
Set the service provider in app.php
'providers' => [
...Others...,
Sukohi\FormError\FormErrorServiceProvider::class,
]
php artisan vendor:publish
Now you have a view called form_error
in resources/views/vendor/sukohi/for-error.
So you can customize this view as you want.
{!! Form::open() !!}
{!! Form::text('email') !!}
{!! form_error('email') !!} <-- Here. The argument is name of input data.
{!! Form::submit('Submit') !!}
{!! Form::close() !!}
This package is licensed under the MIT License. Copyright 2016 Sukohi Kuhoh