Laravel 5.0 Documentation
requirement allows us to use new PHP features such as traits to provide more expressive interfaces for tools like Laravel Cashier. PHP 5.4 also brings significant speed and performance improvements over PHP that tool works. Application development is no different. When you understand how your development tools function, you feel more comfortable and confident using them. The goal of this document is to give application. Elixir supports several common CSS and JavaScript pre-processors, and even testing tools. If you've ever been confused about how to get started with Gulp and asset compilation, you will0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.6 中文文档Illuminate\Http\Resources\Json\Resource; class UserResource extends Resource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request * @return array son\ResourceCollection; class UserCollection extends ResourceCollection { /** * Transform the resource collection into an array. * * @param \Illuminate\Http\Request 本文档由 Laravel Illuminate\Http\Resources\Json\Resource; class UserResource extends Resource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request * @return array0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档$multiplied->all(); // [2, 4, 6, 8, 10] 注:和大多数集合方法一样,map 返回新的集合实例;它 并不修改所调用的实例。如果你想要改变原来的集合,使 用 transform 方法。 mapInto() mapInto() 方法会迭代集合,通过传递值到构造器来为给定类创建新 的实例: class Currency 本文档由学院君提供 学院君致力于提供优质 // '{"name":"Desk","price":200}' transform() transform 方法迭代集合并对集合中每个数据项调用给定回调。集合 中的数据项将会被替代成从回调中返回的值: $collection = collect([1, 2, 3, 4, 5]); $collection->transform(function ($item, $key) { return 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 674 // [2, 4, 6, 8, 10] 注意:不同于大多数其它集合方法,transform 修改集 合本身,如果你想要创建一个新的集合,使用 map 方法。 union() union 方法添加给定数组到集合,如果给定数组包含已经在原来集合 中存在的犍,原生集合的值会被保留:0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.1 中文文档本文档由 Laravel 学院(LaravelAcademy.org)提供 132 sortByDesc splice sum take toArray toJson transform unique values where whereLoose zip 3、自定义集合 如果你需要在自己扩展的方法中使用自定义的集合对象,可以重写模型上的 newCollection $multiplied->all(); // [2, 4, 6, 8, 10] 注意:和大多数集合方法一样,map 返回新的集合实例;它并不修改所调用的实例。如果你 想要改变原来的集合,使用 transform 方法。 merge() merge 方法合并给定数组到集合。该数组中的任何字符串键匹配集合中的字符串键的将会重 写集合中的值: $collection = collect(['product_id' '{"name":"Desk","price":200}' transform() transform 方法迭代集合并对集合中每个数据项调用给定回调。集合中的数据项将会被替代 成从回调中返回的值: $collection = collect([1, 2, 3, 4, 5]); $collection->transform(function ($item, $key) { return0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档search shift shuffle slice sort sortBy sortByDesc splice sum take toArray toJson transform unique values where whereLoose zip 3、自定义集合 如果你需要在自己扩展的方法中使用自定义的集合对象,可以重写模型上 的 newCollection $multiplied->all(); // [2, 4, 6, 8, 10] 注意:和大多数集合方法一样,map 返回新的集合实例;它并不修改所调用的实例。如果 你想要改变原来的集合,使用 transform 方法。 max() max 方法返回集合中最大值: $max = collect([['foo' => 10], ['foo' => 20]])->max('foo'); // '{"name":"Desk","price":200}' transform() transform 方法迭代集合并对集合中每个数据项调用给定回调。集合中的数据项将会被替 代成从回调中返回的值: $collection = collect([1, 2, 3, 4, 5]); $collection->transform(function ($item, $key) { return0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档$multiplied->all(); // [2, 4, 6, 8, 10] 注:和大多数集合方法一样,map 返回新的集合实例;它并不修改所调用的实例。如果你想要改 变原来的集合,使用 transform 方法。 mapWithKeys() mapWithKeys 方法对集合进行迭代并传递每个值到给定回调,该回调会返回包含键值对的关联数 组: $collection = collect([ '{"name":"Desk","price":200}' transform() transform 方法迭代集合并对集合中每个数据项调用给定回调。集合中的数据项将会被替代成从 回调中返回的值: $collection = collect([1, 2, 3, 4, 5]); $collection->transform(function ($item, $key) { return return $item * 2; }); $collection->all(); // [2, 4, 6, 8, 10] 注意:不同于大多数其它集合方法,transform 修改集合本身,如果你想要创建一个新的集合, 使用 map 方法。 union() union 方法添加给定数组到集合,如果给定数组包含已经在原来集合中存在的犍,原生集合的值 会被保留: $collection0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》 10. RwdTechniques, Tools and Design Strategies. [en ligne]. 22 juillet 2011. [Consulté le 6 novembre 2017]. Disponible à l'adresse : https://www.smashingmagazine.com/2011/07/responsive-web-design- techniques-tools-an0 码力 | 7 页 | 76.36 KB | 1 年前3
The Laravel Handbook
framework of the month” kind of thing. Laravel has been around since 2011, well before modern frontend tools like React and Vue.js existed. It stood the test of time. And it evolved over the years to a serious install the extensions Laravel Extra Intellisense Laravel Artisan Laravel Blade Snippets PHP tools for VS Code We have a bunch of folders and a bunch of files. The first thing you’re going to look0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》 08 . RSSSources 12https://www.xul.fr/xml-rss.html 13https://www.rssboard.org/rss-specification 14https://tools.ietf.org/html/rfc4287 15https://www.differencebetween.info/difference-between-rss-and-atom 16https://trends0 码力 | 7 页 | 52.98 KB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
application/x-www-form-urlencoded userid=joe&password=guessme • Outils HTTP – CLI : curl – Browser dev tools • Exemples PATCH : mnot4 , SOA bits5 AJAX : Historique • Asynchronous Javascript And Xml • Buzzword0 码力 | 11 页 | 91.09 KB | 1 年前3
共 11 条
- 1
- 2













