Releases: gregorip02/restql
Releases · gregorip02/restql
Drop support for base64 queries
Merge pull request #23 from gregorip02/2.x 2.x Remove support for base64 queries
Implement better testing support
Merge pull request #22 from gregorip02/2.x [2.x] Implement better testing
Drop support for mutations clausules
Merge pull request #20 from gregorip02/2.x [2.x] Drop support for mutations
New permissive authorizer 🎉
v2.2.1 [2.2.1] New permissive authorizer
#11 add support for selectable attributes
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
Fix: update package config
v0.0.4
Deep queries with the with
method.
Beta version 0.0.2
You can only use the select clausule.