Commit Graph

73 Commits

Author SHA1 Message Date
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
Toby Zerner 3b3c4ef7b9 Allow chaining on scope 2020-01-08 17:45:18 +10:30
Toby Zerner 89742dff26 Typehint example 2020-01-08 17:45:03 +10:30
Toby Zerner 295d2beafd Allow condition to be passed to sortable/filterable 2020-01-08 17:44:53 +10:30
Toby Zerner fab1a86925 fix some bugs 2019-11-21 15:15:24 +10:30
Toby Zerner 91c0387b5b Update README formatting 2019-11-19 11:59:31 +10:30
Toby Zerner b23014ec8a Clean up 2019-11-18 15:45:43 +10:30
Toby Zerner e5f9a6212a wip 2019-11-18 13:46:45 +10:30
Toby Zerner 5d76c0f45a wip 2019-11-16 17:50:07 +10:30
Toby Zerner 8a4a09bfeb More tests 2019-11-16 11:51:27 +10:30
Toby Zerner d889701ec6 Revert "Update resource definition API to allow extending schema"
This reverts commit 57ffa867c8.
2019-11-16 10:15:03 +10:30
Toby Zerner 1ccbe6568f Remove old code 2019-11-16 10:14:12 +10:30
Toby Zerner ce085c32f3 Allow wildcard Accepts 2019-11-16 10:14:05 +10:30
Toby Zerner 57ffa867c8 Update resource definition API to allow extending schema 2019-10-15 18:56:51 +10:30
Toby Zerner ae46a35cbd Pass the full data array to validators 2019-10-03 16:35:54 +09:30
Toby Zerner 4883a8b595 Allow relationships to specify adapter-specific scope logic 2019-10-03 16:35:41 +09:30
Toby Zerner 4a001556d8 Ensure primary resources are returned in the correct order 2019-10-03 16:34:47 +09:30
Toby Zerner 606a79a0cf Allow fields to be made only visible for single root resources 2019-10-03 16:32:18 +09:30
Toby Zerner 8ae0682d3a Prevent error with empty relationships without links 2019-10-03 16:19:56 +09:30
Toby Zerner 0bb094ba29 Slight tweak/document Eloquent relationship ID loading 2019-10-03 15:54:47 +09:30
Toby Zerner ff9462face Cleaner substring syntax 2019-10-03 15:41:43 +09:30
Toby Zerner b63ba9d164 Don't show next link if there are no more models 2019-10-03 15:41:22 +09:30