bitsnbolts/laravel-collection-macros
Composer 安装命令:
composer require bitsnbolts/laravel-collection-macros
包简介
A set of useful Laravel collection macros
README 文档
README
This repository contains some useful collection macros.
Installation
You can install the package via composer:
composer require bitsnbolts/laravel-collection-macros
Usage
replaceInKeys
Do a find and replace on all the keys of the collection.
$data = new Collection(['foo_bar' => 1]); $data->replaceInKeys('_', ' '); // Collection(['foo bar' => 1])
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 3.02k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-03-11