Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
rappasoft committed Jul 29, 2020
2 parents 7148a59 + b0f4086 commit 8f6dad7
Show file tree
Hide file tree
Showing 100 changed files with 4,817 additions and 34 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [7.2.4] - 2020-07-29

## Added

- Added GitAds to README, putting here for transparency.
- Ported over validation for default language files from 6.x BP
- Added Czech language files

## Changed

- Changed default gravatar to be more generic.
- Use Laravel bootable traits with UUID trait.

## [7.2.3] - 2020-07-26

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

[Unreleased]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.3...development
[Unreleased]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.4...development
[7.2.4]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.3...v7.2.4
[7.2.3]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.2...v7.2.3
[7.2.2]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.1...v7.2.2
[7.2.1]: https://github.com/rappasoft/laravel-boilerplate/compare/v7.2.0...v7.2.1
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

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

<a href="https://tracking.gitads.io/?repo=laravel-boilerplate"><img src="https://images.gitads.io/laravel-boilerplate" alt="GitAds"/></a>

### Slack Channel

Please join us in our Slack channel to get faster responses to your questions. Get your invite here: https://laravel-boilerplate.herokuapp.com
Expand Down
2 changes: 1 addition & 1 deletion app/Domains/Auth/Models/Traits/Method/UserMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ public function getPermissionDescriptions(): Collection
*/
public function getAvatar($size = null)
{
return 'https://gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s='.config('boilerplate.avatar.size', $size);
return 'https://gravatar.com/avatar/'.md5(strtolower(trim($this->email))).'?s='.config('boilerplate.avatar.size', $size).'&d=mp';
}
}
7 changes: 4 additions & 3 deletions app/Models/Traits/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ public function getUuidName()
return property_exists($this, 'uuidName') ? $this->uuidName : 'uuid';
}

protected static function boot()
/**
* Use Laravel bootable traits.
*/
protected static function bootUuid()
{
parent::boot();

static::creating(function ($model) {
$model->{$model->getUuidName()} = PackageUuid::uuid4()->toString();
});
Expand Down
24 changes: 12 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/boilerplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
'az' => ['name' => 'Azerbaijan', 'rtl' => false],
'zh' => ['name' => 'Chinese Simplified', 'rtl' => false],
'zh-TW' => ['name' => 'Chinese Traditional', 'rtl' => false],
'cs' => ['name' => 'Czech', 'rtl' => false],
'da' => ['name' => 'Danish', 'rtl' => false],
'de' => ['name' => 'German', 'rtl' => false],
'el' => ['name' => 'Greek', 'rtl' => false],
Expand Down
17 changes: 17 additions & 0 deletions resources/lang/ar/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/

'failed' => 'البيانات المدخلة لا تتطابق مع قاعدة بيناتنا.',
'throttle' => 'ثانية من محاولات تسجيل الدخول الفاشلة، برجاء المحاولة مرة أخرى بعد :seconds seconds.',
];
17 changes: 17 additions & 0 deletions resources/lang/ar/pagination.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/

'previous' => '&laquo; السابق',
'next' => 'التالي &raquo;',
];
20 changes: 20 additions & 0 deletions resources/lang/ar/passwords.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/

'reset' => 'لقد تم إعادة تعيين كلمة مرورك!',
'sent' => 'قمنا بإرسال رابط إعادة تعيين كلمة مرورك إلى بريدك الإلكتروني!',
'throttled' => 'Please wait before retrying.',
'token' => 'رمز إعادة تعيين كلمة المرور هذا غير صالح.',
'user' => 'لم نستطع إيجاد مستخدم ينتمي إليه هذا البريد الإلكتروني.',
];
146 changes: 146 additions & 0 deletions resources/lang/ar/validation.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<?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' => 'يجب قبول الحقل :attribute',
'active_url' => 'الحقل :attribute لا يُمثّل رابطًا صحيحًا',
'after' => 'يجب على الحقل :attribute أن يكون تاريخًا لاحقًا للتاريخ :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'يجب أن لا يحتوي الحقل :attribute سوى على حروف',
'alpha_dash' => 'يجب أن لا يحتوي الحقل :attribute على حروف، أرقام ومطّات.',
'alpha_num' => 'يجب أن يحتوي :attribute على حروفٍ وأرقامٍ فقط',
'array' => 'يجب أن يكون الحقل :attribute ًمصفوفة',
'before' => 'يجب على الحقل :attribute أن يكون تاريخًا سابقًا للتاريخ :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'يجب أن تكون قيمة :attribute محصورة ما بين :min و :max.',
'file' => 'يجب أن يكون حجم الملف :attribute محصورًا ما بين :min و :max كيلوبايت.',
'string' => 'يجب أن يكون عدد حروف النّص :attribute محصورًا ما بين :min و :max',
'array' => 'يجب أن يحتوي :attribute على عدد من العناصر محصورًا ما بين :min و :max',
],
'boolean' => 'يجب أن تكون قيمة الحقل :attribute إما true أو false ',
'confirmed' => 'حقل التأكيد غير مُطابق للحقل :attribute',
'date' => 'الحقل :attribute ليس تاريخًا صحيحًا',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'لا يتوافق الحقل :attribute مع الشكل :format.',
'different' => 'يجب أن يكون الحقلان :attribute و :other مُختلفان',
'digits' => 'يجب أن يحتوي الحقل :attribute على :digits رقمًا/أرقام',
'digits_between' => 'يجب أن يحتوي الحقل :attribute ما بين :min و :max رقمًا/أرقام ',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'للحقل :attribute قيمة مُكرّرة.',
'email' => 'يجب أن يكون :attribute عنوان بريد إلكتروني صحيح البُنية',
'ends_with' => 'The :attribute must end with one of the following: :values',
'exists' => 'الحقل :attribute لاغٍ',
'file' => 'The :attribute must be a file.',
'filled' => 'الحقل :attribute إجباري',
'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' => 'يجب أن يكون الحقل :attribute صورةً',
'in' => 'الحقل :attribute لاغٍ',
'in_array' => 'الحقل :attribute غير موجود في :other.',
'integer' => 'يجب أن يكون الحقل :attribute عددًا صحيحًا',
'ip' => 'يجب أن يكون الحقل :attribute عنوان IP ذي بُنية صحيحة',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'يجب أن يكون الحقل :attribute نصآ من نوع JSON.',
'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' => 'يجب أن يكون حجم الملف :attribute أصغر من :max كيلوبايت',
'string' => 'يجب أن لا يتجاوز طول النّص :attribute :max حروفٍ/حرفًا',
'array' => 'يجب أن لا يحتوي الحقل :attribute على أكثر من :max عناصر/عنصر.',
],
'mimes' => 'يجب أن يكون الحقل ملفًا من نوع : :values.',
'min' => [
'numeric' => 'يجب أن تكون قيمة الحقل :attribute أكبر من :min.',
'file' => 'يجب أن يكون حجم الملف :attribute أكبر من :min كيلوبايت',
'string' => 'يجب أن يكون طول النص :attribute أكبر من :min حروفٍ/حرفًا',
'array' => 'يجب أن يحتوي الحقل :attribute على الأقل على :min عُنصرًا/عناصر',
],
'not_in' => 'الحقل :attribute لاغٍ',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'يجب على الحقل :attribute أن يكون رقمًا',
'present' => 'The :attribute field must be present.',
'regex' => 'صيغة الحقل :attribute .غير صحيحة',
'required' => 'الحقل :attribute مطلوب.',
'required_if' => 'الحقل :attribute مطلوب في حال ما إذا كان :other يساوي :value.',
'required_unless' => 'الحقل :attribute مطلوب في حال ما لم يكن :other يساوي :values.',
'required_with' => 'الحقل :attribute إذا توفّر :values.',
'required_with_all' => 'الحقل :attribute إذا توفّر :values.',
'required_without' => 'الحقل :attribute إذا لم يتوفّر :values.',
'required_without_all' => 'الحقل :attribute إذا لم يتوفّر :values.',
'same' => 'يجب أن يتطابق الحقل :attribute مع :other',
'size' => [
'numeric' => 'يجب أن تكون قيمة :attribute أكبر من :size.',
'file' => 'يجب أن يكون حجم الملف :attribute أكبر من :size كيلو بايت.',
'string' => 'يجب أن يحتوي النص :attribute عن ما لا يقل عن :size حرفٍ/أحرف.',
'array' => 'يجب أن يحتوي الحقل :attribute عن ما لا يقل عن:min عنصرٍ/عناصر',
],
'starts_with' => 'The :attribute must start with one of the following: :values',
'string' => 'يجب أن يكون الحقل :attribute نصآ.',
'timezone' => 'يجب أن يكون :attribute نطاقًا زمنيًا صحيحًا',
'unique' => 'قيمة الحقل :attribute مُستخدمة من قبل',
'url' => 'صيغة الرابط :attribute غير صحيحة',
'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 attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/

'attributes' => [],
];
17 changes: 17 additions & 0 deletions resources/lang/az/auth.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/

'failed' => 'İstifadə etdiyiniz məlumatlar bizim bazamızda yoxdur.',
'throttle' => 'Həddindən artıq uğursuz login cəhdi.Xahiş edirik :seconds saniyə sonra cəhd edin.',
];
17 changes: 17 additions & 0 deletions resources/lang/az/pagination.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/

'previous' => '&laquo; Əvvəlki',
'next' => 'Sonrakı &raquo;',
];
Loading

0 comments on commit 8f6dad7

Please sign in to comment.