The other day I had an Eloquent query that wasn’t returning what I expected it to. I started looking for a way to determine what was happening “under the hood” so to speak. It turns out it’s very simple.
Read MoreI wanted to take a quick break in my barrage of Artisan posts to write about defining one-to-many and many-to-many relationships in Laravel’s Eloquent. Eloquent also supports one-to-one relationships but I felt like those are used so rarely that I could skip it.
Read MoreHere are two useful commands that you can use every day and one that’s good for getting yourself setup.
Read MoreAs I’ve been organizing the flow of this series there’s a random set of commands that don’t really have a good home. I thought I would cover them now so they’re out of the way.
Read MoreNow that we’ve learned how to create our migrations it’s time to discuss how to work with them using the migrate
family of commands.
Let’s start with my favorite feature so far: database migrations. I’m going to start with this command because I think it’s one of the more critical components and because the next article will involve working with them. :-)
Read MoreBook cover copyright Martin Fowler
This chapter explains several methods that that allow you to refactor classes.
I love the concept of “Replace Type Code with Subclasses”. This has been an effective way to remove complexity because each subclass can handle it’s logic in it’s own set of functions.
I hope everyone enjoyed the book!
At work, we’re moving our application from Zend Framework to Laravel. I don’t have much experience with Laravel so I’ve been working my way through Laravel 5.7 From Scratch . I’ve been amazed at how easy it is to work with Laravel but I’m overwhelmed by Artisan’s list of available commands. My goal over the next several weeks is to look at each command and determine why it’s there and when the command should be used. Mostly due to my own self interested but hopefully others will find it helpful.
Read Moresubscribe via RSS