Skip to content

Conversation

phpsa
Copy link
Owner

@phpsa phpsa commented Nov 28, 2019

Updated features to include:

  • ApiResource & ApiCollection Base classes for response mapping
  • added config vars for limit, addfields, removefields to customise response fields
  • fixed bug when using multiple connections to retrieve table columns
  • added helper methods to filter request fields
  • added resource mappable response call
  • added allowable fields contract

craigAtCD and others added 30 commits November 12, 2019 14:04
…re/policy_collections_update

# Conflicts:
#	src/Events/Created.php
#	src/Events/Deleted.php
#	src/Events/Updated.php
#	src/Generator/stubs/controller.stub
#	src/Http/Controllers/Api/Controller.php
…re/policy_collections_update

# Conflicts:
#	README.md
#	src/Contracts/Parser.php
#	src/Contracts/Response.php
#	src/Generator/ApiMakeCommand.php
#	src/Http/Controllers/Api/Controller.php
#	src/UriParser.php
…m/phpsa/laravel-api-controller into feature/policy_collections_update

# Conflicts:
#	src/Http/Resources/Contracts/CaseFormat.php
…m/phpsa/laravel-api-controller into feature/policy_collections_update

# Conflicts:
#	src/Http/Resources/Contracts/CaseFormat.php
…re/policy_collections_update

# Conflicts:
#	src/Contracts/ModelRepository.php
#	src/Contracts/Parser.php
#	src/Contracts/Policies.php
#	src/Contracts/Relationships.php
#	src/Contracts/Response.php
#	src/Generator/ApiMakeCommand.php
#	src/Helpers.php
#	src/Http/Controllers/Api/Controller.php
#	src/Http/Resources/Contracts/CaseFormat.php
@phpsa phpsa merged commit be69b35 into develop Nov 28, 2019
phpsa added a commit that referenced this pull request Dec 8, 2019
* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates
phpsa pushed a commit that referenced this pull request Dec 16, 2019
* Develop (#33)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion

+ Updated excludeArrayValues to exclude if not in optionals instead of always including.

* Added accessor notes about $appends usage

* Update controller with query modifier

* Add extra query parser method

* Include previous exception with ApiException
phpsa added a commit that referenced this pull request Dec 17, 2019
* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion (#35)

* Develop (#33)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion

+ Updated excludeArrayValues to exclude if not in optionals instead of always including.

* Added accessor notes about $appends usage

* Update controller with query modifier

* Add extra query parser method

* Include previous exception with ApiException

* Api Exception update

* Fixed query param optionals

* updated unit tests

*  Updated travis ci config / requirements to laravel / php versions

* Put mismatched method back in

* Apply fixes from StyleCI (#36)
phpsa added a commit that referenced this pull request Jan 19, 2020
* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion (#35)

* Develop (#33)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion

+ Updated excludeArrayValues to exclude if not in optionals instead of always including.

* Added accessor notes about $appends usage

* Update controller with query modifier

* Add extra query parser method

* Include previous exception with ApiException

* Api Exception update

* Fixed query param optionals

* updated unit tests

*  Updated travis ci config / requirements to laravel / php versions

* Put mismatched method back in

* Apply fixes from StyleCI (#36)

* Fixed issue with parser uing query instead of input

* work on response mapping / default fields

Co-authored-by: Sam Sehnert <sam@customd.com>
phpsa added a commit that referenced this pull request Jan 20, 2020
* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion (#35)

* Develop (#33)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Feature/requests mapping (#17)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#18)

* Feature/policy collections update (#19)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Feature/policy collections update (#22)

* Develop (#14)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Develop To Master (#16)

* Added Created, Updated and Deleted events, Moved request to each method to allow overloading:

* Apply fixes from StyleCI

* Scrutinizer updates

* Update controller.stub

* Feature/requests mapping (#13)

* Event accepts request object and any type of request can now be pushed through

* Apply fixes from StyleCI (#12)

* Request should have a constructor for instances with models

* Update BaseRepository.php

* Apply fixes from StyleCI (#15)

* Fixed namespace type declaration

* Fixed namespace type declaration

* Fixed namespace type declaration

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* Apply fixes from StyleCI (#25)

* Apply fixes from StyleCI (#27)

* Policiies auth mehtod without users

* user not needed

* Tidy up uri parser class

* Fixes

* fix more

* Feature/policy collections update (#29)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* Feature/policy collections update (#32)

* Added resource collections and policy check.

* Updated Readme

* Formatting

* Apply fixes from StyleCI (#20)

* Scrutinizer fixes - deprecation / namesapce

* Added middleware and query qualifiers

* Policy Update

* Post adding new and artisan updated, code cleanup

* Apply fixes from StyleCI (#21)

* Scrutiniser fixes

* Put now handles relations

* Fix return types

* Minor updates to fix relationships and make command

* Sanke case vs camel case

* Apply fixes from StyleCI (#23)

* Minor bugfix for case sensitifity

* Fixed make command

* model is static

* Apply fixes from StyleCI (#24)

* Scrutiniser fixes

* policies - for unauthed users

* Minor updates

* STYLEFIXES

* fixed phpcs rule

* Apply fixes from StyleCI (#31)

* minor updates

* csfixer run on code

* Missing file updated

* Includes should be returnable

* static not defined

* Allowed fields updated

* minor updates

* Logic inversion

+ Updated excludeArrayValues to exclude if not in optionals instead of always including.

* Added accessor notes about $appends usage

* Update controller with query modifier

* Add extra query parser method

* Include previous exception with ApiException

* Api Exception update

* Fixed query param optionals

* updated unit tests

*  Updated travis ci config / requirements to laravel / php versions

* Put mismatched method back in

* Apply fixes from StyleCI (#36)

* Fixed issue with parser uing query instead of input

* work on response mapping / default fields

* Fix issue where array_merge_request does not overwite and we need it to for our requests.

* Apply fixes from StyleCI (#40)

Co-authored-by: Sam Sehnert <sam@customd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants