Skip to content

Commit 8f6dad7

Browse files
committed
Merge branch 'development'
2 parents 7148a59 + b0f4086 commit 8f6dad7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+4817
-34
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
## [7.2.4] - 2020-07-29
7+
8+
## Added
9+
10+
- Added GitAds to README, putting here for transparency.
11+
- Ported over validation for default language files from 6.x BP
12+
- Added Czech language files
13+
14+
## Changed
15+
16+
- Changed default gravatar to be more generic.
17+
- Use Laravel bootable traits with UUID trait.
18+
619
## [7.2.3] - 2020-07-26
720

821
## Changed
@@ -318,7 +331,8 @@ Started from scratch with a blank Laravel 7.* installation. This release is not
318331
- Fix yarn tests
319332
- Fix: Socially logged in users get assigned the default role
320333

321-
[Unreleased]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.3...development
334+
[Unreleased]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.4...development
335+
[7.2.4]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.3...v7.2.4
322336
[7.2.3]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.2...v7.2.3
323337
[7.2.2]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.1...v7.2.2
324338
[7.2.1]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.0...v7.2.1

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
[Click here for the official documentation](http://laravel-boilerplate.com)
2323

24+
<a href="https://tracking.gitads.io/?repo=laravel-boilerplate"><img src="https://images.gitads.io/laravel-boilerplate" alt="GitAds"/></a>
25+
2426
### Slack Channel
2527

2628
Please join us in our Slack channel to get faster responses to your questions. Get your invite here: https://laravel-boilerplate.herokuapp.com

app/Domains/Auth/Models/Traits/Method/UserMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ public function getPermissionDescriptions(): Collection
9999
*/
100100
public function getAvatar($size = null)
101101
{
102-
return 'https://gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s='.config('boilerplate.avatar.size', $size);
102+
return 'https://gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s='.config('boilerplate.avatar.size', $size).'&d=mp';
103103
}
104104
}

app/Models/Traits/Uuid.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ public function getUuidName()
2828
return property_exists($this, 'uuidName') ? $this->uuidName : 'uuid';
2929
}
3030

31-
protected static function boot()
31+
/**
32+
* Use Laravel bootable traits.
33+
*/
34+
protected static function bootUuid()
3235
{
33-
parent::boot();
34-
3536
static::creating(function ($model) {
3637
$model->{$model->getUuidName()} = PackageUuid::uuid4()->toString();
3738
});

composer.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/boilerplate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
'az' => ['name' => 'Azerbaijan', 'rtl' => false],
152152
'zh' => ['name' => 'Chinese Simplified', 'rtl' => false],
153153
'zh-TW' => ['name' => 'Chinese Traditional', 'rtl' => false],
154+
'cs' => ['name' => 'Czech', 'rtl' => false],
154155
'da' => ['name' => 'Danish', 'rtl' => false],
155156
'de' => ['name' => 'German', 'rtl' => false],
156157
'el' => ['name' => 'Greek', 'rtl' => false],

resources/lang/ar/auth.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Authentication Language Lines
7+
|--------------------------------------------------------------------------
8+
|
9+
| The following language lines are used during authentication for various
10+
| messages that we need to display to the user. You are free to modify
11+
| these language lines according to your application's requirements.
12+
|
13+
*/
14+
15+
'failed' => 'البيانات المدخلة لا تتطابق مع قاعدة بيناتنا.',
16+
'throttle' => 'ثانية من محاولات تسجيل الدخول الفاشلة، برجاء المحاولة مرة أخرى بعد :seconds seconds.',
17+
];

resources/lang/ar/pagination.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Pagination Language Lines
7+
|--------------------------------------------------------------------------
8+
|
9+
| The following language lines are used by the paginator library to build
10+
| the simple pagination links. You are free to change them to anything
11+
| you want to customize your views to better match your application.
12+
|
13+
*/
14+
15+
'previous' => '&laquo; السابق',
16+
'next' => 'التالي &raquo;',
17+
];

resources/lang/ar/passwords.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Password Reset Language Lines
7+
|--------------------------------------------------------------------------
8+
|
9+
| The following language lines are the default lines which match reasons
10+
| that are given by the password broker for a password update attempt
11+
| has failed, such as for an invalid token or invalid new password.
12+
|
13+
*/
14+
15+
'reset' => 'لقد تم إعادة تعيين كلمة مرورك!',
16+
'sent' => 'قمنا بإرسال رابط إعادة تعيين كلمة مرورك إلى بريدك الإلكتروني!',
17+
'throttled' => 'Please wait before retrying.',
18+
'token' => 'رمز إعادة تعيين كلمة المرور هذا غير صالح.',
19+
'user' => 'لم نستطع إيجاد مستخدم ينتمي إليه هذا البريد الإلكتروني.',
20+
];

resources/lang/ar/validation.php

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
<?php
2+
3+
return [
4+
/*
5+
|--------------------------------------------------------------------------
6+
| Validation Language Lines
7+
|--------------------------------------------------------------------------
8+
|
9+
| The following language lines contain the default error messages used by
10+
| the validator class. Some of these rules have multiple versions such
11+
| as the size rules. Feel free to tweak each of these messages here.
12+
|
13+
*/
14+
15+
'accepted' => 'يجب قبول الحقل :attribute',
16+
'active_url' => 'الحقل :attribute لا يُمثّل رابطًا صحيحًا',
17+
'after' => 'يجب على الحقل :attribute أن يكون تاريخًا لاحقًا للتاريخ :date.',
18+
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
19+
'alpha' => 'يجب أن لا يحتوي الحقل :attribute سوى على حروف',
20+
'alpha_dash' => 'يجب أن لا يحتوي الحقل :attribute على حروف، أرقام ومطّات.',
21+
'alpha_num' => 'يجب أن يحتوي :attribute على حروفٍ وأرقامٍ فقط',
22+
'array' => 'يجب أن يكون الحقل :attribute ًمصفوفة',
23+
'before' => 'يجب على الحقل :attribute أن يكون تاريخًا سابقًا للتاريخ :date.',
24+
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
25+
'between' => [
26+
'numeric' => 'يجب أن تكون قيمة :attribute محصورة ما بين :min و :max.',
27+
'file' => 'يجب أن يكون حجم الملف :attribute محصورًا ما بين :min و :max كيلوبايت.',
28+
'string' => 'يجب أن يكون عدد حروف النّص :attribute محصورًا ما بين :min و :max',
29+
'array' => 'يجب أن يحتوي :attribute على عدد من العناصر محصورًا ما بين :min و :max',
30+
],
31+
'boolean' => 'يجب أن تكون قيمة الحقل :attribute إما true أو false ',
32+
'confirmed' => 'حقل التأكيد غير مُطابق للحقل :attribute',
33+
'date' => 'الحقل :attribute ليس تاريخًا صحيحًا',
34+
'date_equals' => 'The :attribute must be a date equal to :date.',
35+
'date_format' => 'لا يتوافق الحقل :attribute مع الشكل :format.',
36+
'different' => 'يجب أن يكون الحقلان :attribute و :other مُختلفان',
37+
'digits' => 'يجب أن يحتوي الحقل :attribute على :digits رقمًا/أرقام',
38+
'digits_between' => 'يجب أن يحتوي الحقل :attribute ما بين :min و :max رقمًا/أرقام ',
39+
'dimensions' => 'The :attribute has invalid image dimensions.',
40+
'distinct' => 'للحقل :attribute قيمة مُكرّرة.',
41+
'email' => 'يجب أن يكون :attribute عنوان بريد إلكتروني صحيح البُنية',
42+
'ends_with' => 'The :attribute must end with one of the following: :values',
43+
'exists' => 'الحقل :attribute لاغٍ',
44+
'file' => 'The :attribute must be a file.',
45+
'filled' => 'الحقل :attribute إجباري',
46+
'gt' => [
47+
'numeric' => 'The :attribute must be greater than :value.',
48+
'file' => 'The :attribute must be greater than :value kilobytes.',
49+
'string' => 'The :attribute must be greater than :value characters.',
50+
'array' => 'The :attribute must have more than :value items.',
51+
],
52+
'gte' => [
53+
'numeric' => 'The :attribute must be greater than or equal :value.',
54+
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
55+
'string' => 'The :attribute must be greater than or equal :value characters.',
56+
'array' => 'The :attribute must have :value items or more.',
57+
],
58+
'image' => 'يجب أن يكون الحقل :attribute صورةً',
59+
'in' => 'الحقل :attribute لاغٍ',
60+
'in_array' => 'الحقل :attribute غير موجود في :other.',
61+
'integer' => 'يجب أن يكون الحقل :attribute عددًا صحيحًا',
62+
'ip' => 'يجب أن يكون الحقل :attribute عنوان IP ذي بُنية صحيحة',
63+
'ipv4' => 'The :attribute must be a valid IPv4 address.',
64+
'ipv6' => 'The :attribute must be a valid IPv6 address.',
65+
'json' => 'يجب أن يكون الحقل :attribute نصآ من نوع JSON.',
66+
'lt' => [
67+
'numeric' => 'The :attribute must be less than :value.',
68+
'file' => 'The :attribute must be less than :value kilobytes.',
69+
'string' => 'The :attribute must be less than :value characters.',
70+
'array' => 'The :attribute must have less than :value items.',
71+
],
72+
'lte' => [
73+
'numeric' => 'The :attribute must be less than or equal :value.',
74+
'file' => 'The :attribute must be less than or equal :value kilobytes.',
75+
'string' => 'The :attribute must be less than or equal :value characters.',
76+
'array' => 'The :attribute must not have more than :value items.',
77+
],
78+
'max' => [
79+
'numeric' => 'يجب أن تكون قيمة الحقل :attribute أصغر من :max.',
80+
'file' => 'يجب أن يكون حجم الملف :attribute أصغر من :max كيلوبايت',
81+
'string' => 'يجب أن لا يتجاوز طول النّص :attribute :max حروفٍ/حرفًا',
82+
'array' => 'يجب أن لا يحتوي الحقل :attribute على أكثر من :max عناصر/عنصر.',
83+
],
84+
'mimes' => 'يجب أن يكون الحقل ملفًا من نوع : :values.',
85+
'min' => [
86+
'numeric' => 'يجب أن تكون قيمة الحقل :attribute أكبر من :min.',
87+
'file' => 'يجب أن يكون حجم الملف :attribute أكبر من :min كيلوبايت',
88+
'string' => 'يجب أن يكون طول النص :attribute أكبر من :min حروفٍ/حرفًا',
89+
'array' => 'يجب أن يحتوي الحقل :attribute على الأقل على :min عُنصرًا/عناصر',
90+
],
91+
'not_in' => 'الحقل :attribute لاغٍ',
92+
'not_regex' => 'The :attribute format is invalid.',
93+
'numeric' => 'يجب على الحقل :attribute أن يكون رقمًا',
94+
'present' => 'The :attribute field must be present.',
95+
'regex' => 'صيغة الحقل :attribute .غير صحيحة',
96+
'required' => 'الحقل :attribute مطلوب.',
97+
'required_if' => 'الحقل :attribute مطلوب في حال ما إذا كان :other يساوي :value.',
98+
'required_unless' => 'الحقل :attribute مطلوب في حال ما لم يكن :other يساوي :values.',
99+
'required_with' => 'الحقل :attribute إذا توفّر :values.',
100+
'required_with_all' => 'الحقل :attribute إذا توفّر :values.',
101+
'required_without' => 'الحقل :attribute إذا لم يتوفّر :values.',
102+
'required_without_all' => 'الحقل :attribute إذا لم يتوفّر :values.',
103+
'same' => 'يجب أن يتطابق الحقل :attribute مع :other',
104+
'size' => [
105+
'numeric' => 'يجب أن تكون قيمة :attribute أكبر من :size.',
106+
'file' => 'يجب أن يكون حجم الملف :attribute أكبر من :size كيلو بايت.',
107+
'string' => 'يجب أن يحتوي النص :attribute عن ما لا يقل عن :size حرفٍ/أحرف.',
108+
'array' => 'يجب أن يحتوي الحقل :attribute عن ما لا يقل عن:min عنصرٍ/عناصر',
109+
],
110+
'starts_with' => 'The :attribute must start with one of the following: :values',
111+
'string' => 'يجب أن يكون الحقل :attribute نصآ.',
112+
'timezone' => 'يجب أن يكون :attribute نطاقًا زمنيًا صحيحًا',
113+
'unique' => 'قيمة الحقل :attribute مُستخدمة من قبل',
114+
'url' => 'صيغة الرابط :attribute غير صحيحة',
115+
'uuid' => 'The :attribute must be a valid UUID.',
116+
117+
/*
118+
|--------------------------------------------------------------------------
119+
| Custom Validation Language Lines
120+
|--------------------------------------------------------------------------
121+
|
122+
| Here you may specify custom validation messages for attributes using the
123+
| convention "attribute.rule" to name the lines. This makes it quick to
124+
| specify a specific custom language line for a given attribute rule.
125+
|
126+
*/
127+
128+
'custom' => [
129+
'attribute-name' => [
130+
'rule-name' => 'custom-message',
131+
],
132+
],
133+
134+
/*
135+
|--------------------------------------------------------------------------
136+
| Custom Validation Attributes
137+
|--------------------------------------------------------------------------
138+
|
139+
| The following language lines are used to swap attribute place-holders
140+
| with something more reader friendly such as E-Mail Address instead
141+
| of "email". This simply helps us make messages a little cleaner.
142+
|
143+
*/
144+
145+
'attributes' => [],
146+
];

0 commit comments

Comments
 (0)