Skip to content

Releases: gregorip02/restql

Drop support for base64 queries

18 Apr 00:45
f186a43
Compare
Choose a tag to compare
Merge pull request #23 from gregorip02/2.x

2.x Remove support for base64 queries

Implement better testing support

17 Apr 19:09
eea6743
Compare
Choose a tag to compare
Merge pull request #22 from gregorip02/2.x

[2.x] Implement better testing

Drop support for mutations clausules

11 Oct 20:30
a923e14
Compare
Choose a tag to compare
Merge pull request #20 from gregorip02/2.x

[2.x] Drop support for mutations

New permissive authorizer 🎉

19 Jul 17:04
110b999
Compare
Choose a tag to compare
v2.2.1

[2.2.1] New permissive authorizer

#11 add support for selectable attributes

21 Jun 22:57
Compare
Choose a tag to compare

This minor version adds a function in the trait that allows the developer to determine what attributes their clients can obtain from their models.

<?php

namespace App;

// ...
use Restql\Traits\RestqlAttributes;

class Book extends Model
{
    use RestqlAttributes;

     /**
     * Get the fillable attributes for selects.
     *
     * @return array
     */
    public function onSelectFillables(): array
    {
        if ($this->isPrivate) {
            return ['title', 'created_at'];
        }

        return $this->getFillable();
    }
}

v2.1.3

17 Jun 23:19
Compare
Choose a tag to compare
Fix: update package config

v0.0.4

23 Mar 14:55
Compare
Choose a tag to compare

Deep queries with the with method.

Beta version 0.0.2

19 Mar 21:24
73748ef
Compare
Choose a tag to compare

You can only use the select clausule.