928 0 0 0
Last Updated : 2024-05-01 13:12:03
how to show validation errors in arabic language in laravel
1- You should modify language reference in folder config->app as follows
'locale' => 'en', // modify en to ar
'fallback_locale' => 'en' , // modify en to ar
2- now its time to modify this file resources->lang->en->validation as follows (you can copy en folder and paste it again with a new name such as 'ar' or just modify validation file as follows)
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => '?