Run prettier on all *.md files

```
prettier '{app,source}/**/**.md' --write
```
This commit is contained in:
Oliver Davies 2020-03-08 17:52:59 +00:00
parent a3ceeaf0f3
commit 85a10c545b
170 changed files with 5127 additions and 2282 deletions

View file

@ -1,24 +1,35 @@
---
title: Examples of using Laravel Collections in Drupal
date: 2018-08-23
excerpt: Some examples of using Laravels Illuminate Collections within Drupal projects.
excerpt:
Some examples of using Laravels Illuminate Collections within Drupal
projects.
tags:
- drupal
- drupal-7
- drupal-8
- drupal-planet
- laravel
- laravel-collections
- php
- drupal
- drupal-7
- drupal-8
- drupal-planet
- laravel
- laravel-collections
- php
has_tweets: true
---
Since starting to work with Laravel as well as Drupal and Symfony, watching Adam Wathans [Refactoring to Collections][0] course as well as [lessons on Laracasts][6], Ive become a fan of [Laravels Illuminate Collections][1] and the object-orientated pipeline approach for interacting with PHP arrays.
In fact Ive given a talk on [using Collections outside Laravel][2] and have written a [Collection class module][3] for Drupal 7.
Since starting to work with Laravel as well as Drupal and Symfony, watching Adam
Wathans [Refactoring to Collections][0] course as well as [lessons on
Laracasts][6], Ive become a fan of [Laravels Illuminate Collections][1] and
the object-orientated pipeline approach for interacting with PHP arrays.
Ive also tweeted several examples of code that Ive written within Drupal that use Collections, and I thought it would be good to collate them all here for reference.
In fact Ive given a talk on [using Collections outside Laravel][2] and have
written a [Collection class module][3] for Drupal 7.
Thanks again to [Tighten][4] for releasing and maintaining the [tightenco/collect library][5] that makes it possible to pull in Collections via Composer.
Ive also tweeted several examples of code that Ive written within Drupal that
use Collections, and I thought it would be good to collate them all here for
reference.
Thanks again to [Tighten][4] for releasing and maintaining the
[tightenco/collect library][5] that makes it possible to pull in Collections via
Composer.
<div class="lg:flex lg:flex-wrap lg:-mx-4">
{% include 'tweet' with {
@ -50,6 +61,7 @@ Thanks again to [Tighten][4] for releasing and maintaining the [tightenco/collec
data_cards: true,
content: '<p lang="en" dir="ltr">Some more <a href="https://twitter.com/hashtag/Drupal?src=hash&amp;ref_src=twsrc%5Etfw">#Drupal</a> 8 fun with Laravel Collections. Loading the tags for a post and generating a formatted string of tweetable hashtags. <a href="https://t.co/GbyiRPzIRo">pic.twitter.com/GbyiRPzIRo</a></p>&mdash; Oliver Davies (@opdavies) <a href="https://twitter.com/opdavies/status/1032544228029673472?ref_src=twsrc%5Etfw">August 23, 2018</a>',
} %}
</div>
[0]: https://adamwathan.me/refactoring-to-collections