Download the PHP package mlk9/dual-response without Composer
On this page you can find all versions of the php package mlk9/dual-response. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mlk9/dual-response
More information about mlk9/dual-response
Files in mlk9/dual-response
Download mlk9/dual-response
More information about mlk9/dual-response
Files in mlk9/dual-response
Vendor mlk9
Package dual-response
Short Description With this package, you can operate your API and web in a single controller. (Laravel 6>=)
License MIT
Package dual-response
Short Description With this package, you can operate your API and web in a single controller. (Laravel 6>=)
License MIT
Please rate this library. Is it a good library?
Informations about the package dual-response
Dual Response
With this package, you can operate your API and web in a single controller. (Laravel 6>=)
با این پکیج می توانید پاسخ های متفاوتی هنگامی که در روت api یا web می فرستید دریافت کنید.
Installation via composer
then publish vendor
Documents
Example for usage
response($webRoute //your response, $apiRoute //your json response)
BookController.php
You can change default values with pass array
Default Response Api
Default Response When you pass to key error
In api routes :
In web routes return your response.
Default Response When you pass to key data
In api routes :
In web routes return your response.
Default Response When you pass null to key data
(not found - 404)
In api routes :
In web routes abort 404 error.
All versions of dual-response with dependencies
PHP Build Version
Package Version
The package mlk9/dual-response contains the following files
Loading the files please wait ....