Laravel Errors
, (*1)
This package lets you load errors the same way you load translations from your filesystem with multilang support, as simple as:, (*2)
error('validation.empty');
Installation
Install the package through composer:, (*3)
composer require naxon/laravel-errors:^1.0.0
Then publish the config file:, (*4)
php artisan vendor:publish --provider="Naxon\Errors\ErrorsServiceProvider" --tag="config"
And finally, create the errors and languages folder under your resource folder:, (*5)
โโโ resources
โย ย โโโ errors
โย ย โย ย โโโ en
| | | |โโ validation.php
โย ย โย ย โโโ he
| | | |โโ validation.php
Configuration
After you published the config/errors.php file, you may edit the errors path:, (*6)
return [
/**
* The path of the errors folder
*/
'path' => resource_path('errors'),
];
Testing
Coming soon..., (*7)
Credits
License
The MIT License (MIT). Please see License File for more information., (*8)