View e-mail in browser

newsletter #43

Hi, welcome to the 43th newsletter! 

What Laravel 5.5 means for our packages
At Spatie we’ve released a plethora of Laravel packages. Now that Laravel 5.5 has been released most of our packages will get a new (major) version. In this blogpost I’d like to explain how we handle new releases of the framework and what it means for our packages.

Getting started with laravel-medialibrary: a video tutorial
The medialibrary is probably one of our most powerful packages. It can associate files with Eloquent models. It can also generate derived images such as thumbnails. 

Because the package can do so much, the docs have grown quite large. If you’re a visual learner, you’ll be happy to know that I’ve made a video that shows what the medialibrary is capable of.

Build a Facebook Messenger chatbot in Laravel
In a new article on his blog, Christoph Rumpel shows how you can easily set up a Facebook Messenger chatbot using the shiny new v2 of Botman Studio. Very cool stuff.

A recap of Laracon EU 2017
Devron Baldwin wrote down a few words on the excellent Laracon EU conference, edition 2017. - monitoring and application analytics built specifically for Laravel (sponsored link) allows you and your team members to monitor all your Laravel applications in one central location. Get deep insights and easily watch your cron schedulers, queues, remotely view and manage log files, and monitor your email, security, SSL, DNS and much more.

Understanding Laravel Pipelines
Jeff Ochoa wrote a nice walkthrough of one of Laravels lesser known functionalities: pipelines.

The dangers of mutable datetime objects
Jeff Madsen wrote down a good piece that explains how mutable Carbon dates can lead to some nasty bugs. I would’t mind if Chronos were to be promoted to the default datetime library in Laravel.

Generating IDE Stubs for IonCube-Encoded Classes
Here’s a great story by Collin O’Dell, maintainer of league/commonmark amongst other things, on how he was able to extract the class definitions out of obfuscated PHP source files.

Unit testing Vue.js components with the official Vue testing tools and Jest
An official toolset for testing Vue components will be released soon. In a new series Jover Morales tells you all about it.

Meanwhile on Twitter

On Twitter I see a bunch of people regularly tweeting very nice code snippets. Instead of only retweeting those, I’m going to add them to my blog. Here are the first ones:

How to hide the “Last Login” line on the terminal
Using an assigment to merge an array

Useful links from the archives

An interview about the business side of our packages
I recently was interviewed by Povilas Korop about the business side of our packages.

Automatically generate a sitemap in Laravel
Today my company released a package called laravel-sitemap. There are already a lot of excellent sitemap packages out there. They all have in common that you have to manually add links that must appear in the sitemap. With our new package that isn’t required. It can automatically build up a sitemap by crawling a site. In this post I’d like to explain why we built it and how it works.

A package to sync your .env file with .env.example
Julien Tant released laravel-env-sync a package that makes sure the .env file is in sync with .env.example.

Building a search engine friendly sitemap XML with Laravel
Eric Barnes of Laravel News wrote a good tutorial on how to create a sitemap with Laravel.

Is your JavaScript function actually pure
a function like x => x * 10 looks pure because every single time you pass it the number 3 as argument you will get 30 as output. So how can we tell that one function is pure and the other isn’t? Is it enough that we just read the code? Spoiler: no.

Fun with JavaScript and emoji
Did you know you can, in JavaScript loop over certain emoji’s? You can also combine some emoji’s. Cool stuff!

Solidify Fragile Tests
Joe Ferguson shares a tip on how to make a version of PHPUnit’s assertArraySubset where the order of the array does not matter.

How to create a most popular list with Laravel and Google Analytics
Over at Laravel News Eric L. Barnes posted a new tutorial on how he used our Analytics package to create a list of most popular posts. Great stuff!

Hacking a PHP site
In the beginning of the summer the Belgian company PHPro held a cool hacking contest. The persons the could hack a special site that they had set up could win a prize. Yesterday they published an interesting article on how that site could be hacked. The site was also hacked in ways that the developers of the company did not anticipate.   Twitter

You are receiving this mail because you've subscribed at