sukohi/form-error
Composer 安装命令:
composer require sukohi/form-error
包简介
A Laravel package to easily display errors from validator.
README 文档
README
A Laravel package to easily display errors from validator.
Installation
Execute composer command.
composer require form-error:2.*
Set the service provider in app.php
'providers' => [
...Others...,
Sukohi\FormError\FormErrorServiceProvider::class,
]
Preparation
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.
Usage
{!! Form::open() !!}
{!! Form::text('email') !!}
{!! form_error('email') !!} <-- Here. The argument is name of input data.
{!! Form::submit('Submit') !!}
{!! Form::close() !!}
License
This package is licensed under the MIT License. Copyright 2016 Sukohi Kuhoh
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-26