Download the PHP package saritasa/laravel-testbed without Composer
On this page you can find all versions of the php package saritasa/laravel-testbed. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download saritasa/laravel-testbed
More information about saritasa/laravel-testbed
Files in saritasa/laravel-testbed
Download saritasa/laravel-testbed
More information about saritasa/laravel-testbed
Files in saritasa/laravel-testbed
Vendor saritasa
Package laravel-testbed
Short Description Laravel Testbed
License MIT
Homepage https://github.com/Saritasa/php-laravel-testbed
Package laravel-testbed
Short Description Laravel Testbed
License MIT
Homepage https://github.com/Saritasa/php-laravel-testbed
Please rate this library. Is it a good library?
Informations about the package laravel-testbed
Laravel Testbed
Helpers for feature tests, like API sorting, authentication, registration, etc.
Usage
Install the package:
ApiListSortingCheck Trait
Trait to check if sorting works correctly.
Using trait:
Available functions:
Examples:
NOTE: If the response does not contain an envelope (such as "results", "items", etc.), you do not need to send this parameter.
Sorting by single field
To sort by one field in ascending order, only the field name is used. For example:
- api/vendors?order_by=name
- api/vendors?order_by=contacts.name
For sorting in descending order, the same is used, but with a minus. For example:
- api/vendors?order_by=-name
- api/vendors?order_by=-contacts.name
Sorting by several fields
To sort by multiple fields in ascending order, enumerate the field names. For example:
- api/vendors?order_by=id,name
- api/vendors?order_by=name,contacts.name
For sorting in descending order, the same is used, but with a minus. For example:
- api/vendors?order_by=-id,name
- api/vendors?order_by=-id,-contacts.name
Contributing
See Code of Conduct, if you want to make contribution (pull request) or just build and test project on your own.
Resources
- Changes History
- Bug Tracker
- Authors
All versions of laravel-testbed with dependencies
PHP Build Version
Package Version
The package saritasa/laravel-testbed contains the following files
Loading the files please wait ....