Commit Graph

144 Commits

Author SHA1 Message Date
Toby Zerner 32a9fbe35a Refresh the model after updating 2021-05-25 11:30:40 +09:30
Toby Zerner f44f363806 Add Context::fieldRequested 2021-05-25 10:49:34 +09:30
Toby Zerner 5753e3a17c Expose scope and filter as public API 2021-05-18 16:19:52 +09:30
Toby Zerner 848a8df42d Fix noLimit method 2021-05-18 16:18:49 +09:30
Toby Zerner bbca1e44ed Update vuepress deps 2021-05-09 10:41:40 +09:30
Toby Zerner ba4f4d337c Fix pagination next link appearing when it shouldn't 2021-05-05 14:24:26 +09:30
Toby Zerner c563c2879b Run onListing callback after applying sort/filtering to the query 2021-05-05 14:24:26 +09:30
Toby Zerner 7858566e1e Laravel validation: support nested validation messages 2021-05-05 14:24:26 +09:30
Toby Zerner 569371b4d2 Allow callable strings/arrays to be used 2021-05-05 14:24:26 +09:30
Toby Zerner f0c7ed513e Eloquent: apply scopes when including polymorphic relationships 2021-05-05 14:24:26 +09:30
Toby Zerner 71dcdadb3b Eloquent: don't prefix table name - defer this to the schema 2021-05-05 14:24:26 +09:30
Toby Zerner cdb910fdda Eloquent: require all IDs when filtering a hasMany relationship 2021-05-05 14:24:26 +09:30
Toby Zerner 8215cfb0ff Eloquent: support HasOneThrough relationships 2021-05-05 14:24:26 +09:30
Toby Zerner dbd3ceec9c Pass context to AdapterInterface::newQuery() 2021-05-05 14:24:26 +09:30
Toby Zerner cda345d3ad Support adding document meta via Context 2021-05-05 14:24:26 +09:30
Toby Zerner 8029c6fd4a Fix up Show endpoint callbacks 2021-05-05 14:24:26 +09:30
Toby Zerner 1e1fc4cdb3
Merge pull request #20 from tobyzerner/dependabot/npm_and_yarn/elliptic-6.5.4
Bump elliptic from 6.5.3 to 6.5.4
2021-03-12 13:47:08 +10:30
dependabot[bot] d06a635ae2
Bump elliptic from 6.5.3 to 6.5.4
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 03:15:58 +00:00
Toby Zerner ae6d8ca9b2
Merge pull request #19 from tobyzerner/dependabot/npm_and_yarn/prismjs-1.23.0
Bump prismjs from 1.22.0 to 1.23.0
2021-03-02 08:03:18 +10:30
dependabot[bot] 821f493750
Bump prismjs from 1.22.0 to 1.23.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.22.0...v1.23.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 21:31:11 +00:00
Toby Zerner b25ac10be7
Merge pull request #18 from acorncom/patch-1
Update link to the adapter file
2021-02-25 09:01:26 +10:30
David Baker 41a38d4988
Update link to the adapter file 2021-02-24 16:29:30 +03:00
Toby Zerner b57b6c352b Tighten up EloquentAdapter 2021-01-17 20:08:46 +10:30
Toby Zerner 71d5114f0e
Run on ubuntu-18.04 to preserve PHP 7.3 2021-01-16 18:22:28 +10:30
Toby Zerner e5504f76df Support PHP 7.1, acknowledging tests will not run
Unfortunately dms/phpunit-arraysubset-asserts does not support older
versions of PHPUnit, so for now it's not possible to run tests on PHP
7.1 and 7.2. See dms/phpunit-arraysubset-asserts#11
2021-01-16 18:19:40 +10:30
Toby Zerner 07152e2eb3
Test on all supported PHP versions 2021-01-16 18:02:44 +10:30
Toby Zerner 9755994539 Allow PHP 8 and fix a test 2021-01-16 17:59:10 +10:30
Toby Zerner 5de690956f
Merge pull request #15 from tobyzerner/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2021-01-16 17:40:56 +10:30
Toby Zerner 813e779e1c Typehint response 2021-01-15 08:38:00 +10:30
Toby Zerner f53a07c143 Enforce resource listability 2021-01-15 08:37:49 +10:30
Toby Zerner 0c8de3a75a Remove ability to have custom relationship pre-loaders for now 2021-01-15 08:37:17 +10:30
Toby Zerner 5d69048ef8 Add visibility to filters 2021-01-15 08:36:55 +10:30
Toby Zerner f9bba44336 Fix old docs references to $request 2021-01-15 08:36:27 +10:30
Toby Zerner 497cd364a6 Pass models to events by reference and document Show endpoint 2021-01-15 08:35:59 +10:30
Toby Zerner 9846de5267 Add getters tests 2021-01-07 11:18:50 +10:00
Toby Zerner b9f6858a19 Allow meta to be added with plain values 2021-01-07 11:18:39 +10:00
Toby Zerner 8a473e791a Pass field into validation function 2021-01-07 11:18:18 +10:00
Toby Zerner 75a0d3ba22 Fix path trimming 2021-01-07 11:18:06 +10:00
Toby Zerner 3632ab4cfc Update rules function to use Context 2021-01-07 11:17:48 +10:00
Toby Zerner 644078b517 Clean up 2021-01-07 11:17:31 +10:00
Toby Zerner 5fe8558993 Add some filters tests 2021-01-07 11:16:37 +10:00
dependabot[bot] 551dbd3462
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 07:27:47 +00:00
Toby Zerner 05af07ceb3 Wording 2020-11-22 11:41:55 +10:30
Toby Zerner 01952e2abf
Create docs.yml 2020-11-22 11:26:50 +10:30
Toby Zerner 88e8828a6d
Create php.yml 2020-11-22 11:20:10 +10:30
Toby Zerner 807525338c Pass around new Context object; update docs; implement once() 2020-11-22 11:13:50 +10:30
Toby Zerner fbecdd96de Refactor, docs 2020-11-21 16:30:16 +10:30
Toby Zerner 467239c3c1 Support invokables in conditions, not just Closures 2020-05-09 17:55:30 +09:30
Toby Zerner 2570c24390 Allow adding inline documentation 2020-05-09 17:55:09 +09:30
Toby Zerner c6ef714eb4 Null values are still values 2020-02-12 18:20:14 +10:30