-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
localization finished, middleware for access controll created, all parts of role and permissions finished, directorate changed to department and other thinks that not mentioned here has done.
Showing
38 changed files
with
2,275 additions
and
1,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
use App\Http\Requests; | ||
use Config; | ||
use Illuminate\Support\Facades\Redirect; | ||
use Illuminate\Support\Facades\Session; | ||
|
||
class LanguageController extends Controller | ||
{ | ||
public function switchLang($lang) | ||
{ | ||
if (array_key_exists($lang, Config::get('languages'))) { | ||
Session::put('applocale', $lang); | ||
} | ||
return Redirect::back(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
use App; | ||
use Illuminate\Http\Request; | ||
|
||
|
||
class lang extends Controller | ||
{ | ||
// | ||
public function lang(Request $req){ | ||
return $req->all(); | ||
$lang = App::getLocale(); | ||
if($lang == 'en'){ | ||
App::setLocale('en'); | ||
return "english"; | ||
}else{ | ||
App::setLocale('pr'); | ||
return App::getLocale(); | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace App\Http\Middleware; | ||
|
||
use Closure; | ||
use Illuminate\Foundation\Application; | ||
use Illuminate\Http\Request; | ||
use Illuminate\Routing\Redirector; | ||
use Illuminate\Support\Facades\App; | ||
use Illuminate\Support\Facades\Config; | ||
use Illuminate\Support\Facades\Session; | ||
|
||
class Language | ||
{ | ||
public function handle($request, Closure $next) | ||
{ | ||
if (Session::has('applocale') AND array_key_exists(Session::get('applocale'), Config::get('languages'))) { | ||
App::setLocale(Session::get('applocale')); | ||
} | ||
else { // This is optional as Laravel will automatically set the fallback language if there is none specified | ||
App::setLocale(Config::get('app.fallback_locale')); | ||
} | ||
return $next($request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
return [ | ||
'en' => 'English', | ||
'fa' => 'فارسی', | ||
]; |
33 changes: 33 additions & 0 deletions
33
database/migrations/2019_03_18_033754_rename_directorate_user.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class RenameDirectorateUser extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('users', function (Blueprint $table) { | ||
// | ||
$table->renameColumn('directorate','department'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('users', function (Blueprint $table) { | ||
// | ||
}); | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
<?php | ||
return[ | ||
'Home'=>'Home', | ||
'Cars'=>'Cars ', | ||
'Drivers'=>'Drivers', | ||
'Bookings'=>' Bookings', | ||
'Booking'=>' Booking', | ||
'Pendings: '=>'Pendings: ', | ||
'Users'=>'Users', | ||
'Access controller'=>'Access controller', | ||
'Users role'=>'Users role', | ||
'Roles'=>' Roles', | ||
'Permissions'=>'Permissions ', | ||
'Users permission'=>'Users permission', | ||
'language'=>'language', | ||
'Persian'=>'Persian', | ||
'English'=>'English', | ||
'My pending bookings'=>'My pending bookings', | ||
'Pending bookings number: '=>'Pending bookings number: ', | ||
'My approved bookings'=>'My approved bookings', | ||
'My rejected bookings'=>'My rejected bookings', | ||
'Bookings approved by me'=>'Bookings approved by me', | ||
'Bookings rejected by me'=>'Bookings rejected by me', | ||
'Booking_Id'=>'Booking_Id', | ||
'User'=>'User', | ||
'Destination'=>'Destination', | ||
'Pickup_time'=>'Pickup_time ', | ||
'Return_time'=>'Return_time', | ||
'Count'=>'Count', | ||
'Description'=>'Description', | ||
'Approval'=>'Approval', | ||
'Created_at'=>'Created_at', | ||
'Updated_at'=>'Updated_at', | ||
'Dashboard'=>'Dashboard', | ||
'Total users: '=>'Total users: ', | ||
'Approved users: '=>'Approved users: : ', | ||
'Rejected users: '=>'Rejected users: ', | ||
'Pending users: '=>'Pending users: ', | ||
'Total bookings: '=>'Total bookings: ', | ||
'Pending bookings: '=>'Pending bookings: ', | ||
'Approved bookings: '=>'Approved bookings: ', | ||
'Rejected bookings: '=>'Rejected bookings: ', | ||
'Total cars: '=>'Total cars: ', | ||
'Good condition cars: '=>'Good condition cars: ', | ||
'Damaged cars: '=>'Damaged cars: ', | ||
'Total drivers: '=>'Total drivers: ', | ||
'Present drivers: '=>'Present drivers: ', | ||
'Absent drivers: '=>'Absent drivers: ', | ||
'My profile'=>'My profile', | ||
'ID'=>'ID', | ||
'Name'=>'Name', | ||
'Position'=>'Position', | ||
'Department'=>'Department', | ||
'Email'=>'Email', | ||
'Phone'=>'Phone number ', | ||
'Change password'=>'Change password', | ||
'Update'=>'Update', | ||
'One month ago of your activities'=>'One month ago of your activities', | ||
'Total of my approved bookings: '=>'Total of your approved bookings: ', | ||
'Total of my rejected bookings: '=>'Total of your rejected bookings: ', | ||
'Total of my pending bookings: '=>'Total of your pending bookings: ', | ||
'Total of bookings approved by you: '=>'Total of bookings approved by you: ', | ||
'Total of bookings rejected by you: '=>' Total of bookings rejected by you: ', | ||
'Save'=>'Save', | ||
'Cancel'=>'Cancel', | ||
'Current password'=>'Current password', | ||
'Password'=>'Passsword', | ||
'Confirm password'=>'Confirm password', | ||
'New password'=>'New password ', | ||
'Confirm new password'=>'Confirm new password', | ||
'Action'=>'Action', | ||
'Pending' =>'Pending', | ||
'Your request for membership is waiting for approving!'=>'Your request for membership is waiting for approving!', | ||
'Approval_description'=>'Approval_description', | ||
'Approval_pickup_time'=>'Approval_pickup_time', | ||
'Approval_return_time'=>'Approval_return_time', | ||
'Approver'=>'Approver', | ||
'Driver'=>'Driver', | ||
'Car_plate'=>'Car_plate', | ||
'Change'=>'Change', | ||
'Bookings rejected by you '=>'Bookings rejected by you ', | ||
'Bookings approved by you'=>'Bookings approved by you', | ||
'Register new car'=>'Register new car', | ||
'Search by'=>'Search by', | ||
'Plate number'=>'Plate number', | ||
'Car color'=>'Car color', | ||
'Car type'=>'Car type', | ||
'Car model'=>'Car model', | ||
'Driver Id'=>'Driver Id', | ||
'Status'=>'Status', | ||
'New car registeration'=>'New car registeration', | ||
'Plate number'=>'Plate number', | ||
'Color'=>'Color', | ||
'Model'=>'Model', | ||
'Type'=>'Type', | ||
'Search'=>'Search', | ||
'Phone number'=>'Phone number', | ||
'Name'=>'Name', | ||
'Father name'=>'Father name', | ||
'Driver existence'=>'Driver existense', | ||
'Register new driver'=>'Register new driver', | ||
'Present'=>'Present', | ||
'Absent'=>'Absent', | ||
'Insert name'=>'Insert name', | ||
'Insert father name'=>'Insert father name', | ||
'Insert phone number'=>'Insert phone number', | ||
'New driver registeration'=>'New driver registeration', | ||
'Approve or reject'=>'Approve or reject', | ||
'Approve' => 'Approve or reject', | ||
'TRUE'=>'TRUE', | ||
'FALSE'=>'FALSE', | ||
'Select a car'=>'Select a car', | ||
'Select a driver'=>'Select a driver', | ||
'Car'=>'Car', | ||
'Please write cause of approval or rejection'=>'Please write cause of approval or rejection', | ||
'Booking approval'=>'Booking approval', | ||
'There are no pending booking wait for approving'=>'There are no pending booking wait for approving', | ||
'Approved: '=>'Approved: ', | ||
'Rejected: '=>'Rejected: ', | ||
'Approver_user'=>'Approver_user', | ||
'Approved'=>'Approved', | ||
'Rejected'=>'Rejected', | ||
'Approver Id'=>'Approver Id', | ||
'GIS'=>'GIS', | ||
'Administration'=>'Administration', | ||
'Maslaki'=>'Maslaki', | ||
'Deputy Directorate of System development'=>'Deputy Directorate of System development', | ||
'Select a department'=>'Select a department', | ||
'Register new user'=>'Register new user', | ||
'Total approved users: '=>'Total approved users: ', | ||
'New user registeration'=>'New user registeration', | ||
'Give/Change role'=>'Give/Change role', | ||
'User Id: '=>'User Id: ', | ||
'User name: '=>'User name: ', | ||
'Role'=>'Role', | ||
'User role'=>'User role', | ||
'Users Permission'=>'Users permission', | ||
'Note: '=>'Note: permissions with firebrick background are belogns to roles, for changing please refer to user roles.', | ||
'give/change permission'=>'Give/change permission', | ||
'Create new role'=>'Create new role', | ||
'New role creation'=>'New role creation', | ||
'Assign permission'=>'giving and revoking permission', | ||
'Total pendings users: '=>'Total pendings users: ', | ||
'Insert your destination'=>'Insert your destination', | ||
'Count of persons'=>'Count of persons', | ||
'More description'=>'More description', | ||
'Car booking'=>'Car booking', | ||
'Reserve'=>'Reserve', | ||
'Prepared'=>'Prepared', | ||
'Damaged'=>'Damaged', | ||
''=>'', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
<?php | ||
return[ | ||
'Home'=>'خانه', | ||
'Cars'=>'موتر ها', | ||
'Drivers'=>'راننده ها', | ||
'Bookings'=>'رزرو ها', | ||
'Booking' =>' پیشنهاد موتر ', | ||
'Pendings'=>'معلق ها', | ||
'Users'=>'استفاده کننده ها', | ||
'Access controller'=>'کنترول دسترسی به اطلاعات', | ||
'Users role'=>'نقش استفاده کننده ها', | ||
'Roles'=>'نقش ها', | ||
'Permissions'=>'صلاحیت ها', | ||
'Users permission'=>'صلاحیت های استفاده کننده ها', | ||
'language'=>'زبان', | ||
'Persian'=>'فارسی', | ||
'English'=>'انگلیسی', | ||
'My pending bookings'=>'رزرو های معلق من', | ||
'My approved bookings'=>'رزرو های تصویب شدۀ من', | ||
'My rejected bookings'=>'رزرو های رد شدۀ من', | ||
'Bookings approved by me'=>'رزرو های تصویب شده توسط من', | ||
'Bookings rejected by me'=>'رزرو های رد شده توسط من', | ||
'Booking_Id'=>'آی دی رزرو', | ||
'User'=>'استفاده کننده', | ||
'Destination'=>'مقصد', | ||
'Pickup_time'=>'زمان رفتن', | ||
'Return_time'=>'زمان برگشت', | ||
'Count'=>'تعداد', | ||
'Description'=>'شرح', | ||
'Approval'=>'قبولی', | ||
'Created_at'=>'تاریخ ایجاد', | ||
'Updated_at'=>'تاریخ تجدید', | ||
'Dashboard'=>'خلاصه معلومات', | ||
'Total users: '=>'مجموعه استفاده کننده ها: ', | ||
'Approved users: '=>' استفاده کننده های تصویب شده: ', | ||
'Rejected users: '=>'استفاده کننده های رد شده: ', | ||
'Pending users: '=>'استفاده کننده های معلق: ', | ||
'Total bookings: '=>'مجموعه رزرو ها: ', | ||
'Pending bookings: '=>'تعداد رزرو های معلق : ', | ||
'Pending bookings number: '=>'تعداد رزرو های معلق : ', | ||
'Approved bookings: '=>'رزرو های تصویب شده: ', | ||
'Rejected bookings: '=>'رزرو های رد شده: ', | ||
'Total cars: '=>'مجموعه موتر ها: ', | ||
'Good condition cars: '=>'موتر های جور: ', | ||
'Damaged cars: '=>'موتر های خراب: ', | ||
'Total drivers: '=>'مجموعه راننده ها: ', | ||
'Present drivers: '=>'راننده های حاضر: ', | ||
'Absent drivers: '=>'راننده های غیر حاضر: ', | ||
'My profile'=>'مشخصات من', | ||
'ID'=>'آی دی', | ||
'Name'=>'نام', | ||
'Position'=>'وظیفه', | ||
'Department'=>' بخش', | ||
'Email'=>'ایمیل', | ||
'Phone'=>'شماره تلفون', | ||
'Change password'=>'تغییر رمز پسورد', | ||
'Update'=>'تجدید', | ||
'One month ago of your activities'=>'فعالیت های یک ماه گذشته ', | ||
'Total of my approved bookings: '=>' مجموعه رزرو های تصویب شدۀ شما: ', | ||
'Total of my rejected bookings: '=>'مجموعه رزرو های رد شدۀ شما: ', | ||
'Total of my pending bookings: '=>'مجموعه رزرو های معلق شما: ', | ||
'Total of bookings approved by you: '=>'مجموعه رزرو های تصویب شده توسط شما: ', | ||
'Total of bookings rejected by you: '=>' مجموعه رزرو های رد شده توسط شما: ', | ||
'Save'=>'ذخیره', | ||
'Cancel'=>'لغو', | ||
'Current password'=>'پسورد فعلی ', | ||
'New password'=>'پسورد جدید ', | ||
'Password'=>'پسورد', | ||
'Confirm password'=>' تاییدی پسورد', | ||
'Confirm new password'=>'تأییدی پسورد جدید', | ||
'Action'=>'عمل', | ||
'Pending'=>'معلق', | ||
'Your request for membership is waiting for approving!'=>'!پیشنهاد شما منتظر تصویب از سوی اداره می باشد', | ||
'Approver_description'=>'شرح تصویب کننده', | ||
'Approval_pickup_time'=>'زمان رفتن', | ||
'Approval_return_time'=>'زمان برگشت', | ||
'Approver'=>'تصویب کننده', | ||
'Driver'=>'راننده', | ||
'Car_plate'=>'پلیت موتر', | ||
'Change'=>'تغییر', | ||
'Bookings rejected by you '=>'رزرو را شما رد نموده اید', | ||
'Bookings approved by you'=>' رزرو را شما تصویب نموده اید ', | ||
'Register new car'=>' ثبت موتر جدید', | ||
'Search by'=>'جستجو توسط ', | ||
'Plate number'=>'شماره پلیت', | ||
'Car color'=>'رنگ موتر ', | ||
'Car type'=>'نوع موتر', | ||
'Car model'=>'مودل موتر', | ||
'Driver Id'=>'آی دی راننده', | ||
'Status'=>'حالت', | ||
'New car registeration'=>' ثبت موتر جدید ', | ||
'Color'=>'رنگ', | ||
'Model'=>'مودل', | ||
'Type'=>'نوع', | ||
'Search'=>'جستجو', | ||
'Phone number'=>'شماره تلفون', | ||
'Name'=>'نام', | ||
'Father name'=>'نام پدر', | ||
'Driver existence'=>'موجودیت راننده', | ||
'Register new driver'=>'ثبت راننده جدید ', | ||
'Present'=>'حاضر', | ||
'Absent'=>'غیر حاضر', | ||
'Insert name'=>'نام را وارد کنید ', | ||
'Insert father name'=>'نام پدر را وارد کنید', | ||
'Insert phone number'=>'شماره تلفون را وارد کنید', | ||
'New driver registeration'=>'ثبت راننده جدید ', | ||
'Approve or reject'=>'تصویب یا رد', | ||
'Approve' => 'تصویب یا رد', | ||
'TRUE'=>'تصویب', | ||
'FALSE'=>'رد', | ||
'Select a car'=>'یک موتر را انتخاب کنید', | ||
'Select a driver'=>'یک راننده را انتخاب کنید', | ||
'Car'=>'موتر', | ||
'Please write cause of approval or rejection'=>'لطفاً علت تصویب و یا رد را بنویسید', | ||
'Booking approval'=>'تصویب رزرو', | ||
'There are no pending booking wait for approving'=>'کدام رزروی برای تصویب وجود ندارد.', | ||
'Approved: '=>'تصویب شده: ', | ||
'Rejected: '=>': رد شده', | ||
'Pendings: '=>'معلق : ', | ||
'Approver_user'=>'تصویب کننده', | ||
'Approved'=>'تصویب شده', | ||
'Rejected'=>'رد شده', | ||
'Approver Id'=>' آی دی تصویب کننده', | ||
'GIS'=>'معاونیت جی آی اس', | ||
'Administration'=>'معاونیت مالی و اداری ', | ||
'Maslaki'=>'معاونیت مسلکی', | ||
'Deputy Directorate of System development'=>'معاونیت انسجام امور', | ||
'Select a department'=>'یک بخش را انتخاب کن', | ||
'Register new user'=>'ثبت استفاده کننده جدید', | ||
'Total approved users: '=>'مجموعه استفاده کننده های تصویب شده: ', | ||
'New user registeration'=>'ثبت نام استفاده کننده جدید', | ||
'Give/Change role'=>'دادن/تغیر نقش', | ||
'User Id: '=>'آی دی استفاده کننده: ', | ||
'User name: '=>'نام استفاده کننده: ', | ||
'Role'=>'نقش', | ||
'User role'=>'نقش استفاده کننده ها', | ||
'Users Permission'=>'صلاحیت استفاده کننده ها', | ||
'Note: '=>' یاد داشت: صلاحیت های که به رنگ جیگری هستند مربوط نقش ها می شود، برای تغیر آن به بخش نقش ها مراجعه کنید.', | ||
'give/change permission'=>'دادن/تغیر صلاحیت', | ||
'Create new role'=>'ایجاد نقش جدید', | ||
'New role creation'=>'ایجاد نقش جدید', | ||
'Assign permission'=>'دادن و گرفتن نقش', | ||
'Total pendings users: '=>'مجموعه استفاده کننده های معلق: ', | ||
'Insert your destination'=>'جای رفتن تان را بنویسید.', | ||
'Count of persons'=>'تعداد اشخاص', | ||
'More description'=>'وضاحت بیشتر', | ||
'Car booking'=>'رزرو موتر', | ||
'Reserve'=>'رزرو', | ||
'Damaged'=>'خراب', | ||
'Prepared'=>'آماده', | ||
'NULL'=>'خالی', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
''=>'', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
<?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' => 'The :attribute must be accepted.', | ||
'active_url' => 'The :attribute is not a valid URL.', | ||
'after'=>'باید :attriibute بعد از :date بیاید.', | ||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.', | ||
'alpha' => 'The :attribute may only contain letters.', | ||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', | ||
'alpha_num' => 'The :attribute may only contain letters and numbers.', | ||
'array' => 'The :attribute must be an array.', | ||
'before' => 'The :attribute must be a date before :date.', | ||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.', | ||
'between' => [ | ||
'numeric' =>':attribute باید از :min الی :max قیمت بگیرد.', | ||
'file' => 'The :attribute must be between :min and :max kilobytes.', | ||
'string'=> ':attribute باید از :min الی :max حرف داشته باشد', | ||
'array' => 'The :attribute must have between :min and :max items.', | ||
], | ||
'boolean' => 'The :attribute field must be true or false.', | ||
'confirmed' => 'The :attribute confirmation does not match.', | ||
'date'=>':attribute تاریخ صحیح نیست', | ||
'date_equals' => 'The :attribute must be a date equal to :date.', | ||
'date_format' => 'The :attribute does not match the format :format.', | ||
'date_format' => ':attribute چارچوب تاریخ را ندارد', | ||
'different' => 'The :attribute and :other must be different.', | ||
'digits' => ':attribute باید :digits عدد باشد.', | ||
'digits_between' => 'The :attribute must be between :min and :max digits.', | ||
'digits_between' => ':attribute حتمی باید از :min الی :max باشد.', | ||
'dimensions' => 'The :attribute has invalid image dimensions.', | ||
'distinct' => ':attribute تکراری می باشد.', | ||
'email' => 'The :attribute must be a valid email address.', | ||
|
||
'email' => ':attribute باید یک ایمیل درست باشد.', | ||
'exists' => 'The selected :attribute is invalid.', | ||
'file' => 'The :attribute must be a file.', | ||
'filled' => 'The :attribute field must have a value.', | ||
'gt' => [ | ||
'numeric' => 'The :attribute must be greater than :value.', | ||
'file' => 'The :attribute must be greater than :value kilobytes.', | ||
'string' => 'The :attribute must be greater than :value characters.', | ||
'array' => 'The :attribute must have more than :value items.', | ||
], | ||
'gte' => [ | ||
'numeric' => 'The :attribute must be greater than or equal :value.', | ||
'file' => 'The :attribute must be greater than or equal :value kilobytes.', | ||
'string' => 'The :attribute must be greater than or equal :value characters.', | ||
'array' => 'The :attribute must have :value items or more.', | ||
], | ||
'image' => 'The :attribute must be an image.', | ||
'in' => 'The selected :attribute is invalid.', | ||
'in_array' => 'The :attribute field does not exist in :other.', | ||
'integer' => 'The :attribute must be an integer.', | ||
'ip' => 'The :attribute must be a valid IP address.', | ||
'ipv4' => 'The :attribute must be a valid IPv4 address.', | ||
'ipv6' => 'The :attribute must be a valid IPv6 address.', | ||
'json' => 'The :attribute must be a valid JSON string.', | ||
'lt' => [ | ||
'numeric' => 'The :attribute must be less than :value.', | ||
'file' => 'The :attribute must be less than :value kilobytes.', | ||
'string' => 'The :attribute must be less than :value characters.', | ||
'array' => 'The :attribute must have less than :value items.', | ||
], | ||
'lte' => [ | ||
'numeric' => 'The :attribute must be less than or equal :value.', | ||
'file' => 'The :attribute must be less than or equal :value kilobytes.', | ||
'string' => 'The :attribute must be less than or equal :value characters.', | ||
'array' => 'The :attribute must not have more than :value items.', | ||
], | ||
'max' => [ | ||
'numeric' => ':attribute نباید بزرگتر از :max باشد.', | ||
'file' => 'The :attribute may not be greater than :max kilobytes.', | ||
'string' => ':attribute نباید بیشتر از :max حروف داشته باشد.', | ||
'array' => 'The :attribute may not have more than :max items.', | ||
], | ||
'mimes' => 'The :attribute must be a file of type: :values.', | ||
'mimetypes' => 'The :attribute must be a file of type: :values.', | ||
'min' => [ | ||
'numeric' => ':attribute حد اقل از :min کمتر نباشد .', | ||
'file' => 'The :attribute must be at least :min kilobytes.', | ||
'string' => ':attribute حد اقل از :min کمتر حروف نداشته باشد. ', | ||
'array' => 'The :attribute must have at least :min items.', | ||
], | ||
'not_in' => 'The selected :attribute is invalid.', | ||
'not_regex' => 'The :attribute format is invalid.', | ||
'numeric' => ':attribute باید نمبر باشد.', | ||
'present' => 'The :attribute field must be present.', | ||
'regex' => 'The :attribute format is invalid.', | ||
|
||
'required' => 'The :attribute field is required.', | ||
'required' => ':attribute ضروری می باشد', | ||
|
||
'required_if' => 'The :attribute field is required when :other is :value.', | ||
'required_unless' => 'The :attribute field is required unless :other is in :values.', | ||
'required_with' => 'The :attribute field is required when :values is present.', | ||
'required_with_all' => 'The :attribute field is required when :values are present.', | ||
'required_without' => 'The :attribute field is required when :values is not present.', | ||
'required_without_all' => 'The :attribute field is required when none of :values are present.', | ||
'same' => 'The :attribute and :other must match.', | ||
'size' => [ | ||
'numeric' => 'The :attribute must be :size.', | ||
'file' => 'The :attribute must be :size kilobytes.', | ||
'string' => 'The :attribute must be :size characters.', | ||
'array' => 'The :attribute must contain :size items.', | ||
], | ||
'starts_with' => 'The :attribute must start with one of the following: :values', | ||
'string' => 'The :attribute must be a string.', | ||
'string' => ':attribute باید حروفی باشد.', | ||
'timezone' => 'The :attribute must be a valid zone.', | ||
'unique' => 'The :attribute has already been taken.', | ||
'unique' => ':attribute تکراری است.', | ||
'uploaded' => 'The :attribute failed to upload.', | ||
'url' => 'The :attribute format is invalid.', | ||
'uuid' => 'The :attribute must be a valid UUID.', | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Custom Validation Language Lines | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may specify custom validation messages for attributes using the | ||
| convention "attribute.rule" to name the lines. This makes it quick to | ||
| specify a specific custom language line for a given attribute rule. | ||
| | ||
*/ | ||
|
||
'custom' => [ | ||
'attribute-name' => [ | ||
'rule-name' => 'custom-message', | ||
], | ||
], | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Custom Validation Attributes | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The following language lines are used to swap our attribute placeholder | ||
| with something more reader friendly such as "E-Mail Address" instead | ||
| of "email". This simply helps us make our message more expressive. | ||
| | ||
*/ | ||
|
||
'attributes' => [], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.