SUKOHI / FormError by Sukohi

A Laravel package to easily display errors from validator.
9
0
2
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

FormError

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