Download the PHP package naotake51/laravel-recursive-only without Composer
On this page you can find all versions of the php package naotake51/laravel-recursive-only. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download naotake51/laravel-recursive-only
More information about naotake51/laravel-recursive-only
Files in naotake51/laravel-recursive-only
Download naotake51/laravel-recursive-only
More information about naotake51/laravel-recursive-only
Files in naotake51/laravel-recursive-only
Vendor naotake51
Package laravel-recursive-only
Short Description Register recursiveOnly() extending only() to Model, Collection and Arr.
License MIT
Package laravel-recursive-only
Short Description Register recursiveOnly() extending only() to Model, Collection and Arr.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-recursive-only
laravel-recursive-only
Make Laravel's only
a little more useful.
- recursive
*
(any keys)- callback
Requirements
- PHP:
^7.1 || ^8.0
- Laravel:
^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0
Install
Motivation
I found deeply nested Laravel's Resource
to be a pain to define.
I want to write Resource
more simply.
Using
your model add trait RecursiveOnly
call recursiveOnly
.
*
is mean any keys.- The value can be changed in the callback.
For arrays, use Arr::recursiveOnly
All versions of laravel-recursive-only with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1 || ^8.0
illuminate/database Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/support Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/database Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0
illuminate/support Version ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0
The package naotake51/laravel-recursive-only contains the following files
Loading the files please wait ....