2017 © Pedro Peláez
 

library hilt

A Laravel package to add @error directive of Blade.

image

sukohi/hilt

A Laravel package to add @error directive of Blade.

  • Tuesday, January 24, 2017
  • by Sukohi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Hilt

A Laravel package to add @error directive of Blade., (*1)

Installation

Execute the following composer command., (*2)

composer require sukohi/hilt:1.*

Set the ServiceProvider in config/app.php, (*3)

'providers' => [
    ...Others...,  
    Sukohi\Hilt\HiltServiceProvider::class,
]

Preparation

To publish the view, execute the following commands., (*4)

php artisan vendor:publish
  • You can change the view located at resources/views/vendor/hilt/error.blade.php.

Then set Blade directive of Hilt in app/Providers/AppServiceProvider.php like so., (*5)

public function boot()
{
    \Sukohi\Hilt\Hilt::directive();
}

Now you can use @error() in your views., (*6)

Usage

(in View), (*7)

@error('INPUT-KEY') <= An error will be displayed here.

// e.g. 

@error('email')
@error('password')
@error('name')

License

This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh, (*8)

The Versions

24/01 2017

1.0.x-dev

1.0.9999999.9999999-dev

A Laravel package to add @error directive of Blade.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

24/01 2017

dev-master

9999999-dev

A Laravel package to add @error directive of Blade.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

24/01 2017

1.0.1

1.0.1.0

A Laravel package to add @error directive of Blade.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi

26/10 2016

1.0.0

1.0.0.0

A Laravel package to add @error directive of Blade.

  Sources   Download

MIT

The Requires

 

by Avatar Sukohi