Using interfaces is easy and keeps your code clean. This will keep your code clean and extendable.
We can use some object oriented techniques to set configurations rather than arrays or endless constructor types.
Eloquent Trick to get amazing speeds with polymorphic relationship queries using compound indices.
An incredibly useful PHP package that makes working with Guzzle so simple. There's also a Laravel package too!
You really need to forget the latest and greatest. Use the best and the popular. Stay informed, but don't let it conform you.
Common Table Expressions are incredibly useful in MySQL 8. However, Laravel does not support it out of the box. Let's see how we can use a package to support this.
The article includes the best way to understand a many to many relationship and write a migration.
Do you want to test a specific folder in PHPunit? I have found a way to implement this feature more easily.
I have found podcasts are a great way to keep up to date with a lot of the latest information. I've compiled a list of a few I really like.
This is an optional technique that comes in handy when doing processing of arrays that may contain a lot of keys and is used for information storage or manipulation. We can refactor for better and easier understanding of code.
Beginners often clog up their Laravel blade files with unnecessary "ifs", functions, variable assignments, and a host of other issues. We'll dive into why it's bad and how we can fix it.
A unit testing tip that will save you tons of time and effort inspired by Zoolander.
There are five command output methods. What do they look like in the CLI?
A mistake I see in a lot of beginner devs is hardcoding variables inside your code. This is not a good practice, and I see it all too often. Let's fix that and make our code cleaner.
Did you know that you can auto-forward on exception? Laravel makes this process incredibly simple and easy. An extremely useful trick!
The "Any-Benefit" mindset says that something is absolutely worth a lot of your time, even if it provides next to no net benefit. We should rethink this and remove these essentially wasteful activities.
I have now been working 100% remotely for a year. From this, I have gathered lots of knowledge about the pros and cons of this style of work. I'll attempt to lay them out as succinctly as possible.
A Laravel specific trick sequentially manipulate data. Allows for testable pipelines that utilize the service container and multiple parameters and constructors.