Posts

Debugging the Eloquent Query Builder

Laravel Logo

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 More

Defining Relationships In Laravel 5.6 and 6.x

Laravel Logo

I 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 More

Link Post and Podcast Roundup: November 2019 Edition

Link Post Logo

November’s links.

Read More

What the F*ck Is With All the Artisan Commands: Development Helpers

Laravel Logo

Here are two useful commands that you can use every day and one that’s good for getting yourself setup.

Read More

What the F*ck Is With All the Artisan Commands: Quickies

Laravel Logo

As 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 More

What the F*ck Is With All the Artisan Commands: migrate

Laravel Logo

Now 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.

Read More

Link Post and Podcast Roundup: October 2019 Edition

Link Post Logo

October’s links.

Read More

What the F*ck Is With All the Artisan Commands: make:migration

Laravel Logo

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 More

Refactoring 2nd Edition: Chapter 12: Dealing with Inheritance

Refactoring: Improving the Design of Existing Code (2nd Edition) Cover Book cover copyright Martin Fowler

Overview

This chapter explains several methods that that allow you to refactor classes.

My One Takeaway

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!

What the F*ck Is With All the Artisan Commands

Laravel Logo

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 More
RSS

Join Our Mailing List!

View previous campaigns.

Top Posts

  1. Working With Soft Deletes in Laravel (By Example)
  2. Fixing CMake was unable to find a build program corresponding to "Unix Makefiles"
  3. Upgrading to Laravel 8.x
  4. Get The Count of the Number of Users in an AD Group
  5. Multiple Vagrant VMs in One Vagrantfile
  6. Fixing the "this is larger than GitHub's recommended maximum file size of 50.00 MB" error
  7. Changing the Directory Vagrant Stores the VMs In
  8. Accepting Android SDK Licenses From The OSX Command Line
  9. Fixing the 'Target class [config] does not exist' Error
  10. Using Rectangle to Manage MacOS Windows

subscribe via RSS

All content copyright This Programming Thing 2012 - 2021
Blogging about PHP, MySQL, Zend Framework, MySQL, Server Administration and Programming in general