Tony Messias

Tony Messias

19 posts
Avoiding Conditionals, an example

Avoiding Conditionals, an example

I didn’t like the code I wrote for a particular feature. It was “notify users when someone comments in a discussion” with these requirements: * Notify discussion author, if not the comment creator * Notify users assigned to the parent model that is associated with the discussion, except: * the discussion author...

How to integrate your Laravel app with Elasticsearch - 2017 edition

How to integrate your Laravel app with Elasticsearch - 2017 edition

This article is an update (2017) of the How to Integrate your Laravel app with Elasticsearch original article from 2015. There is also an updated version of this post (2022): How to Integrate your Laravel app with Elasticsearch – 2022 edition Searching is an important part of many applications, and it...

PHP Conference Brasil 2016

PHP Conference Brasil 2016

Last week I attended the PHP Conference Brasil for the first time. It was awesome and I’m going to try to cover some of the best parts of it (IMHO) here. Before we start, it’s worth saying that they named the conference rooms after well known community members...

Commands, events, global functions and testing

Commands, events, global functions and testing

The other day I was listening to the FullStackRadio episode 34 which is about dealing with dependencies in Active Record models. This is a very interesting topic and they suggest a few solutions for it. I liked the suggestions and I tried to implement it differently (first try and second...

Otto: First Impressions

Otto: First Impressions

A new tool called Otto came out recently. It’s a tool from Hashicorp. At the project homepage we can see the headline “meet the successor to Vagrant”. I know most of you are familiarized with Vagrant, but for those that are not: Vagrant is a tool to manage virtual...

Laracon EU 2015 recap

Laracon EU 2015 recap

After Laracon US in Louisville, Kentucky, a few weeks ago it was time for Laracon EU this week. For the third time in a row this great conference happened in Amsterdam. Last year I went to the conference and gave a talk at the community day on the day before...

Laravel's Ecosystem

Laravel's Ecosystem

Laravel is awesome. Not just the framework, but its ecosystem. Let me walk you through it and show some of the beauties arround this community. Not just a fullstack framework First of all, I have to say that I don’t participate as much as I want online, but I...

Elasticsearch Aggregations

Elasticsearch Aggregations

I have already covered how you can easily integrate Elasticsearch with your app, but I haven’t talked anything about how you can query your data. I won’t cover the basics of querying or filtering here, instead I will cover a cool feature called aggregations, it’s a way...

Integrating Elasticsearch with Your Laravel app

Integrating Elasticsearch with Your Laravel app

Yo! There’s a revamped version (2022) of this article about integrating Elasticsearch with your Laravel app. Searching is an important part of many applications, and it is most of the time treated as a simple task. “Just query using LIKE and you’re good to go”. Well, while the...

You’ve successfully subscribed to madewithlove
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.