Run prettier on all *.md files
```
prettier '{app,source}/**/**.md' --write
```
This commit is contained in:
parent
a3ceeaf0f3
commit
85a10c545b
170 changed files with 5127 additions and 2282 deletions
|
|
@ -1,24 +1,35 @@
|
|||
---
|
||||
title: Examples of using Laravel Collections in Drupal
|
||||
date: 2018-08-23
|
||||
excerpt: Some examples of using Laravel’s Illuminate Collections within Drupal projects.
|
||||
excerpt:
|
||||
Some examples of using Laravel’s 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 Wathan’s [Refactoring to Collections][0] course as well as [lessons on Laracasts][6], I’ve become a fan of [Laravel’s Illuminate Collections][1] and the object-orientated pipeline approach for interacting with PHP arrays.
|
||||
|
||||
In fact I’ve 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
|
||||
Wathan’s [Refactoring to Collections][0] course as well as [lessons on
|
||||
Laracasts][6], I’ve become a fan of [Laravel’s Illuminate Collections][1] and
|
||||
the object-orientated pipeline approach for interacting with PHP arrays.
|
||||
|
||||
I’ve also tweeted several examples of code that I’ve written within Drupal that use Collections, and I thought it would be good to collate them all here for reference.
|
||||
In fact I’ve 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.
|
||||
I’ve also tweeted several examples of code that I’ve 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&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>— 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue