You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
@@ -106,13 +136,16 @@ see https://laravel.com/docs/5.8/validation#conditionally-adding-rules
106
136
107
137
The following parameters are set in the Base Api controller and can be overwritten by your Controller on a case by case basis:
108
138
109
-
*`protected $resourceKeySingular = 'data';` Resource key for an item.
110
-
*`protected $resourceKeyPlural = 'data';` Resource key for a collection.
111
-
*`protected $defaultFields = ['*'];` Default Fields to respond with
112
-
*`protected $defaultSort = null;` Set the default sorting for queries.
113
-
*`protected $defaultLimit = 25;` Number of items displayed at once if not specified. (0 = maximumLimit)
114
-
*`protected $maximumLimit = 0;` Maximum limit that can be set via $_GET['limit']. - this ties in with the defaultLimit aswell, and if wanting to disable pagination , both should be 0. ) will allow all records to be returned in a single call.
115
-
*`protected $unguard = false;` Do we need to unguard the model before create/update?
*`protected $resourceSingle = JsonResource::class;` Collection to use for your single resource
143
+
*`protected $resourceCollection = ResourceCollection::class;` Collection to use for your resource collection
144
+
*`protected $defaultFields = ['*'];` Default Fields to respond with
145
+
*`protected $defaultSort = null;` Set the default sorting for queries.
146
+
*`protected $defaultLimit = 25;` Number of items displayed at once if not specified. (0 = maximumLimit)
147
+
*`protected $maximumLimit = 0;` Maximum limit that can be set via $_GET['limit']. - this ties in with the defaultLimit aswell, and if wanting to disable pagination , both should be 0. ) will allow all records to be returned in a single call.
148
+
*`protected $unguard = false;` Do we need to unguard the model before create/update?
116
149
117
150
## Security
118
151
@@ -122,7 +155,11 @@ instead of using the issue tracker.
0 commit comments