hassanzohdy / mongez
A Robust application handler for building neat laravel application(s).
Installs: 1 965
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
Watchers: 6
Forks: 12
Open Issues: 0
Requires
- php: >=7.4
- cocur/slugify: ^4.0
- illuminate/support: 5.6.x|5.7.x|5.8.x|6.x.x|7.x.x|8.x.x|9.x.x
- dev-master
- 2.24.6
- 2.24.4
- 2.24.2
- 2.24.1
- 2.24.0
- 2.23.5
- 2.23.4
- 2.23.3
- 2.23.2
- 2.23.1
- 2.23.0
- 2.22.7
- 2.22.6
- 2.22.5
- 2.22.4
- 2.22.3
- 2.22.2
- 2.22.1
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.7
- 2.17.6
- 2.17.5
- 2.17.3
- 2.17.2
- 2.17.1
- 2.17.0
- 2.16.2
- 2.16.1
- 2.15.1
- 2.15.0
- 2.14.2
- 2.14.1
- 2.14.0
- 2.13.2
- 2.13.0
- 2.12.5
- 2.12.4
- 2.12.3
- 2.12.0
- 2.11.3
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.1
- 2.10.0
- 2.9.9
- 2.9.8
- 2.9.7
- 2.9.6
- 2.9.5
- 2.9.4
- 2.9.3
- 2.9.2
- 2.9.1
- 2.9.0
- 2.8.1
- 2.8.0
- 2.7.1
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.9
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.0
- 2.2.22
- 2.2.21
- 2.2.20
- 2.2.19
- 2.2.18
- 2.2.17
- 2.2.16
- 2.2.15
- 2.2.14
- 2.2.13
- 2.2.12
- 2.2.11
- 2.2.10
- 2.2.9
- 2.2.8
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.22
- 2.1.21
- 2.1.20
- 2.1.19
- 2.1.17
- 2.1.15
- 2.1.14
- 2.1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.10
- 1.5.9
- 1.5.8
- 1.5.6
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.22
- 1.4.21
- 1.4.20
- 1.4.16
- 1.4.15
- 1.4.14
- 1.4.13
- 1.4.12
- 1.4.11
- 1.4.10
- 1.4.9
- 1.4.8
- 1.4.7
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.47
- 1.3.46
- 1.3.45
- 1.3.44
- 1.3.43
- 1.3.42
- 1.3.41
- 1.3.40
- 1.3.39
- 1.3.38
- 1.3.36
- 1.3.35
- 1.3.34
- 1.3.33
- 1.3.32
- 1.3.31
- 1.3.21
- 1.3.19
- 1.3.18
- 1.3.17
- 1.3.16
- 1.3.14
- 1.3.13
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1.1
- 1.1
- 1.0
- dev-devlopment
This package is auto-updated.
Last update: 2024-04-24 12:30:15 UTC
README
This project aims to make using Laravel framework more organized and extensible.
Table of contents
Requirements
- Laravel
>=5.6
Installation
Run the following Command in your cli.
composer require hassanzohdy/mongez
Configurations
Once its done run the following command to create the config/mongez.php
file.
php artisan vendor:publish --provider="HZ\Illuminate\Mongez\Providers\MongezServiceProvider"
Translatable
<?php use HZ\Illuminate\Mongez\Translation\Traits\Translatable; class MyClass { use Translatable; public function index() { $this->transUsers('users.name'); // will translate from `Users` module and `users` file and the keyword is `name $this->transUsers('usersGroups.permissions'); // will translate from `Users` module and `usersGroups` file and the keyword is `permissions } }
Change Log
- 2.24.2 (24 Dec 2023)
- Fixed request sql options is overwritten by current class sql options
- 2.24.1 (24 Nov 2022)
- Fixed empty array of date in
date_response
.
- Fixed empty array of date in
- 2.24.0 (24 Nov 2022)
- Enhanced Resource Manager Errors to display the resource class name.
- 2.23.5 (23 Oct 2022)
- Now generated model will have
casts
property instead ofdates
for date casting.
- Now generated model will have
- 2.23.4 (22 Oct 2022)
- Fixed defining the class namespace of
UTCDateTime
infunctions.php
file.
- Fixed defining the class namespace of
- 2.23.3 (22 Oct 2022)
- Fixed collectables to return proper array syntax instead of objects.
- 2.22.2 (28 Aug 2022)
- Fixed
ARRAYABLE_DATA
on listing as it is encoded to json.
- Fixed
- 2.22.1 (28 Aug 2022)
RepositoryManager.wrapMany
will return empty array without passing the collection to the resource if teh given array|collection is empty.
- 2.22.0 (28 Aug 2022)
config/mongez.php
config- Changed
misc
key todate
. - Changed
CarbonImmutable
toimmutable
underdate
key. - Added
week_starts_at
and defaults toSaturday
. - Added
week_ends_at
and defaults toFriday
.
- 2.21.0 (27 Aug 2022)
- Added
getPaginationInfo
in the repository manager. getPaginateInfo
now is deprecated and will be removed in V3.0.- Added
first
method to return the first matched element, takes the same array options aslistModels
and return one model.
- Added
- 2.20.0 (27 Aug 2022)
- Added
saveActionType
property to the repository, it can be used insetData
, and its value will depend on the current action,static::CREATE_ACTION
|static::UPDATE_ACTION
|static::PATCH_ACTION
.
- Added
- 2.18.0 (17 Aug 2022)
- Added
date_response
to format the given date totimestamp
humanTime
text
andformat
outputs. - Added
localized_date
to convert the given date into formatted date based on the locale code. - Used
date_response
in the resource manager to collect dates.
- Added
- 2.17.0 (15 Aug 2022)
- Added Aggregate Utilities
- 2.16.0 (14 Aug 2022)
- Added
date
anddate:between
filters toFILTER_BY
repository constant.
- Added
- 2.15.0 (12 Aug 2022)
- Added
carbonImmutable
feature to change thenow
function into immutable carbon instance.
- Added
- 2.14.0 (10 Aug 2022)
- Added
LOCATION_DATA
constant to resource manager to return proper geo location data.
- Added
- 2.12.0 (26 July 2022)
- Added
LOCALIZED_COLLECTABLE_DATA
constant to resource manager to localize data that are in array list.
- Added
- 2.11.0 (23 July 2022)
- Now
WHEN_AVAILABLE
in resource manager if set totrue
, it will strip out any missing value from the model so the resource will only return existing data without any default values for any missing data.
- Now
- 2.1.21 (28 Feb 2022)
- Fixed Multiple Trait Methods Alias
- 2.1.20 (28 Feb 2022)
- Fixed Missing Semi Colon
- 2.1.19 (28 Feb 2022)
- Fixed
Model
,Resource
andFilter
in the repository while creating child module to receive the child module name instead of the parent module.
- Fixed
- 2.1.17 (28 Feb 2022)
- Added
Translatable
trait.
- Added
- 2.1.14 (28 Feb 2022)
- Fixed generated
database
directory to beDatabase
.
- Fixed generated
Documentation
See full documentation in the wiki page.