gearbox-solutions/eloquent-filemaker
Model::all(), Model::find()), reducing the learning curve for developers familiar with Laravel but unfamiliar with FileMaker’s Data API.Model::all(), Model::find()) to validate data mapping and performance.Model::create(), Model::update()) with rollback plans.class Client extends Model {
protected $connection = 'filemaker';
protected $filemakerLayout = 'clients';
public function getFmIdAttribute() {
return $this->attributes['client_id'] ?? null; // Custom mapping
}
}
FileMakerClientService) to isolate API calls and handle errors centrally.with()), scopes, and simple relationships (if FileMaker layout supports them).whereRaw with FileMaker-specific syntax).Cache::remember) for frequent queries to mitigate API latency.saved, deleted) to trigger FileMaker-specific actions (e.g., scripts).composer.json to avoid unintended updates.\Log::debug('FileMaker API Response', [
'status' => $response->status(),
'body' => $response->body(),
]);
Cache::remember).Model::chunk()).try-catch to handle API failures gracefully (e.g., return cached data or a user-friendly message).How can I help you explore Laravel packages today?