Laravel is a PHP framework that uses Eloquent, a powerful and amazing ORM that allows you to do complex SQL queries in a very easy way. But sometimes you need more, and here I m gonna give you an interesting tip that can bring you a lot of flexibility. When dealing with simple database queries in Continue reading Querying and Eager Loading complex relations in Laravel
Testing with Laravel is very easy, but it can be a nightmare when the tests depend on Events and Listeners. In this post I m gonna show you how you can simplify and improve those tests. Laravel is one of the most popular PHP frameworks nowadays, and I d say its Event handler is one of the Continue reading Solitary or Sociable? Testing Events and Listeners using Laravel
Having a clean code with single responsibility is important, and doing that for model filtering can be easy and very powerful. Believe me. This blog post is related to a talk I gave on April, 2018 on Darkmira Tour PHP 2018, in Bras lia/DF, Brazil, with the same title. The slides are on SpeakerDeck. Filtering models Continue reading QueryFilter: A Model Filtering Concept
Working remotely is the dream job of most developers I know. It s a hard process but it s totally possible. Now you got the best job you could . Enjoy your new life! The beginning. The dream. Do you remember yourself some weeks/months ago? The first interview you did (maybe you re not a native English speaker like Continue reading Congratulations! Now you are a remote worker. Enjoy your new life!
Maintaining an open source project even a small one is not an easy task. The open source ecosystem is about sharing and contributing, about giving and receiving. You scratch my back and I will scratch yours. Open-source is not only a free and open software, it s a lifestyle. Working with open-source is working Continue reading Open-source is about sharing and giving back. Think about that.
One of the most discussed topics in the technology field is about having degrees and how important they are. Do you really need one to be a good engineer? When is it really important for you? Writing a post like this is a big responsibility. I m not here to say if you should attend to Continue reading Degree or not degree? When is it really important?
Learn how to use a very simple and efficient service called ServerPilot for provisioning a web server to host your next PHP project or blog. Provisioning a well-configured web server for a PHP application is not an easy task. You can have experience doing that, but this is not my strongest skill, I admit. So Continue reading Easy server provision for PHP environments using ServerPilot
Being really good in your field is important, but more important than that is to seem to be good. Invest in yourself. Be searchable! How many times did you search your name on Google? How many times did you search some keywords related to you? Did you like the results you got? Can them be Continue reading Invest in yourself. Be searchable!
Open source can change your life. It has changed mine with Corcel, an open source project I started in 2013 that changed who I am, and how I live. The first title I gave to this post was How open source can change your life for the better. That was a good title too, but I Continue reading Why you should contribute to open source projects
Learn how to configure XDebug and PHPUnit in PHPStorm, allowing you to write better tests and fix bugs faster. Test Driven Development (TDD) is an old topic, I know, but it seems many people don t understand how it makes you write better code. The point here is that one of the most important benefits it s Continue reading Using XDebug with PHPUnit in PHPStorm