Skip to content

Releases: gearbox-solutions/eloquent-filemaker

2.3.2

01 Jun 19:34
631f2ec
Compare
Choose a tag to compare

Changed FileMakerDataApiException to always include the layout name in the error message for easier debugging.

2.3.1

29 May 18:17
4d556fb
Compare
Choose a tag to compare

Use Http facade for requests to improve compatibility with Telescope and other frameworks.

2.3.0

24 May 20:30
Compare
Choose a tag to compare

This release reworks FMModel's relationship resolution allowing developers to use the model's native relationship methods to connect to other FileMaker Models as well as Models backed by other database drivers. Also, we introduced a new trait that can be used on regular Models to allow proper relationship resolution to FMModels.

Previously you had to this:

// User.php

class User extends Model
{
    public function company()
    {
        // The Company class is an FMModel and is stored in FileMaker
        return new \GearboxSolutions\EloquentFileMaker\Database\Eloquent\Relations\BelongsTo(Company::query(), $this, 'company_id', 'id', '');
    }
}

Now you can do:

// User.php

use GearboxSolutions\EloquentFileMaker\Database\Eloquent\Concerns\HasHybridRelationships;

class User extends Model
{
    use HasHybridRelationships;
    
    public function company()
    {
        // The Company class is an FMModel and is stored in FileMaker
        // The correct relationship will be resolved automatically thanks to the HasHybridRelationships trait
        return $this->belongsTo(Company::class, 'company_id', 'id');
    }
}

2.2.5

23 May 17:19
Compare
Choose a tag to compare

This release fixes an issue where calling a queryScope and then calling where or whereIn causes an extra find request resulting in erroneous data.

Ex:

Model::where('field', 'value')
    ->myScope()
    ->whereIn('field', ['value 1', 'value 2'])

2.2.4

02 May 20:59
238d9b2
Compare
Choose a tag to compare

Fixed orWhere being dropped when appended after a where.

2.2.3

29 Apr 22:18
c806cfa
Compare
Choose a tag to compare

Changed error throwing to process later instead of in retry, avoiding error with records not found

2.2.2

29 Apr 20:33
8be85c8
Compare
Choose a tag to compare

Adjusted retries so that it will actually attempt more than once.

2.2.1

29 Apr 16:00
19f5c44
Compare
Choose a tag to compare

Removed improper ignoreValidation.

2.2.0

26 Apr 18:34
Compare
Choose a tag to compare

This is a cool update! We've added the QueryExecuted event, which makes FileMaker queries show up in helpful Laravel dev tools like Clockwork. With this, you get a log of each of your queries for each page load, how long they take to execute, and you can see the exact URL, method, and data which was sent to the FileMaker Data API. This makes it easy to do diagnosis of slow-running Data API queries!

  • Updates FileMakerConnection class to fire Illuminate\Database\Events\QueryExecuted event when making a request to the FIleMaker endpoint, including the session login.

2.1.2

24 Apr 18:51
2c4bf59
Compare
Choose a tag to compare

Modified retry behavior to better handle FileMaker's Data API returning 502 errors.