* use RESOURCE_NAME for requests
* use RESOURCE_NAME for transformers
* add permissions field to api key
* add migration for new permissions field
* update tests
* remove debug log
* set column type to "json"
* remove default attribute to fix tests
* fix default value for permissions
* fix after merge
* fix after merge
* allow to "register" custom permissions
* add "role" to default resource names
* fix after merge
* fix phpstan
* fix migrations
Changes the API internals to use normal Laravel binding which automatically supports nested-models and can determine their relationships. This removes a lot of confusingly complex internal logic and replaces it with standard Laravel code.
This also removes a deprecated "getModel" method and fully replaces it with a "parameter" method that does stricter type-checking.