Johnathan Smith

Full Stack Laravel Developer + Consultant

Tag: Laravel

Laravel: Creating Many to Many Relationships - The Definitive Guide

Laravel: Creating Many to Many Relationships - The Definitive Guide

Taking full advantage of all the built-in functionality

The article includes the best way to understand a many to many relationship and write a migration.

PHPUnit and Testing Specific Folders

PHPUnit and Testing Specific Folders

The Less Stressful way to implement this technique

Do you want to test a specific folder in PHPunit? I have found a way to implement this feature more easily.

Podcasts for Laravel Developers

Podcasts for Laravel Developers

Boost your dev knowledge!

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.

Limit Code Evaluation and Expressions in Your Blade Templates and Files

Limit Code Evaluation and Expressions in Your Blade Templates and Files

Remove these mistakes from your view files

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.

Laravel Commands Different Output Methods and Styles

Laravel Commands Different Output Methods and Styles

What Do They Each Look Like?

There are five command output methods. What do they look like in the CLI?

Stop Hardcoding Variables - Tricks to Avoid It

Stop Hardcoding Variables - Tricks to Avoid It

Avoid these beginner mistakes.

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.

Laravel Exceptions - Forwarding on Errors

Laravel Exceptions - Forwarding on Errors

Automatically Redirect the User When Thrown

Did you know that you can auto-forward on exception? Laravel makes this process incredibly simple and easy. An extremely useful trick!

Decorators and Laravel Pipelines with Multiple Parameters and Constructors

Decorators and Laravel Pipelines with Multiple Parameters and Constructors

An Alternative and Testable Way to Mutate Data with Laravel's Service Container

A Laravel specific trick sequentially manipulate data. Allows for testable pipelines that utilize the service container and multiple parameters and constructors.