Skip to content

Releases: waadmawlood/laravel-generate-repository-api

v1.8.1

22 Aug 10:34
7a972e3
Compare
Choose a tag to compare

Fixed

  • fix SQLSTATE[HY093]: Invalid parameter number (7a972e3)

v1.8.0

23 Jun 20:40
324364a
Compare
Choose a tag to compare

v1.7.0

24 Dec 15:19
3b7ff83
Compare
Choose a tag to compare

Added

  • added hasAllRolePermissions to check all roles and permissions operator (and)
    
    public function create(User $user)
    {
        return $user->hasAnyRolePermissions(['Admin', 'category_create'], ['api']); // "Admin" Or "category_create"
    }

    // **************************************************************

    
    public function create(User $user)
    {
        return $user->hasAllRolePermissions(['Admin', 'category_create'], ['api']); // "Admin" And "category_create"
    }

v1.6.1

21 Oct 18:58
cc37a0e
Compare
Choose a tag to compare

Fixed

  • fix Call to undefined method Waad\Repository\Helpers\Check::checkAsIncluded(); (cc37a0e)

v1.6.0

21 Oct 18:51
5495c11
Compare
Choose a tag to compare

Added

  • Added Index Request for index controller extend from Pagination or Unlimit Request.

Fixed

  • Fix duplicated migration when repeating the same repo command, allow just force or not exist.
  • Check that the Permission model exists.
  • Remove unnecessary types of params and return them in BaseRepository, Interfaces, and Controllers.
  • Remove Show Permission and replace it with a list.

Commit (5495c11)
تحياتي

v1.5.1

07 Sep 16:14
e381932
Compare
Choose a tag to compare

Fixed

  • Fix the name of the primary attribute from primary to primaryKey in a model (e381932)

v1.5.0

18 Jul 10:06
Compare
Choose a tag to compare

Added

  • support multiple order By and support order primary records by nested relationship (ca6eb8f)

v1.4.2

05 Jun 10:47
Compare
Choose a tag to compare

Fixed

  • fix multi guards of permissions in the policy of the model (da67808)

v1.4.1

05 Jun 06:57
Compare
Choose a tag to compare

Fixed

  • support multi guards of creating permissions command (434ee50)

example : php artisan repo:permission Car --guard=api,web

v1.4.0

04 Jun 21:18
Compare
Choose a tag to compare

Added

  • add command create permissions of model with guard (00bdef1)