PHPNews

Series Chapters

It's a bit overdue, but I need to add chapter headings to each series here at Laracasts. Come along as I use TDD to drive out this small change to the …

Written by Laracasts - - Aggregated on Thursday July 18, 2019


Avoid Flags

Technique #7. Particularly when it comes to your public interface, be careful about requiring flags to toggle various functionality. Instead, ask yourself if …

Written by Laracasts - - Aggregated on Tuesday July 16, 2019


Drop Down a Level

Technique #5. Often, you'll find your controller conducting logic that might instead be better managed by the model. In this episode, we'll review a TeamMember…

Written by Laracasts - - Aggregated on Monday July 1, 2019


Be Strict With Your Controllers

Technique #4. If you're not careful, it's easy for a controller to quickly get out of hand. All of the sudden, you have countless endpoints and actions - each …

Written by Laracasts - - Aggregated on Thursday June 27, 2019


Commentable Workshop

To save time, Laracasts originally used Disqus for its video comments section. However, it's time to migrate to a native solution that is better connected to …

Written by Laracasts - - Aggregated on Thursday June 20, 2019


Sweat the Small Stuff

Technique #3. Often, the little things that "don't make a difference" have a way of eventually defining the integrity of your entire codebase. So, yes, do …

Written by Laracasts - - Aggregated on Tuesday June 18, 2019


Two-Way Databinding Review

If you ever find yourself desperately trying to juggle state between parent and child components, ask yourself if there should instead be a single source of …

Written by Laracasts - - Aggregated on Monday June 17, 2019


Play With Confidence

Technique #2. Now that we've learned to back up our code with a series of tests, we can move on to the second technique. Clean code isn't a straight line. …

Written by Laracasts - - Aggregated on Wednesday June 12, 2019


Refactoring Insurance

Technique #1. You can't improve your code if you're terrified to change it. That's where tests come into play. Think of them as refactoring insurance. Go …

Written by Laracasts - - Aggregated on Tuesday June 11, 2019


Source Diving the Queue Worker

Source diving isn't always the most enjoyable thing in the world, but, nonetheless, it's an excellent way to improve your understanding of an API. In this …

Written by Laracasts - - Aggregated on Thursday June 6, 2019


Modals and Custom Vue Plugins

Our next practical Vue component is, of course, the ubiquitous modal. In this episode, we'll migrate and enhance the code from the CSS-only modals lesson. Once …

Written by Laracasts - - Aggregated on Monday June 3, 2019


Source Diving the Dispatcher

Now that you understand how pipelines work, let's dive into the Laravel source code to figure out what precisely happens when we call ReconcileAccount::dispatc…

Written by Laracasts - - Aggregated on Wednesday May 29, 2019


Modals with Zero JavaScript

I recently learned how to create CSS-only modals by leveraging the :target psuedo-class. In this episode, I'll show you how to combine this technique with …

Written by Laracasts - - Aggregated on Tuesday May 28, 2019