Posts

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

Refactoring 2nd Edition: Chapter 11: Refactoring APIs

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

Overview

This chapter explains several methods for refactoring functions and their parameters.

My One Takeaway

I felt like most of this chapter just clicked with me. I do love the “Remove Flag Argument” refactoring because I worked on a piece of software were it was used all the time and I constantly had to look up what the function was doing.

subscribe via RSS

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