Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Laracasts

Defensive Laravel

via Laracasts

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
In this series, we'll take a deep-dive into various strategies and tools that will help you write robust and reliable code. We'll explore core defensive programming concepts, from strict typing and immutable objects to leveraging value objects for more effective domain modeling. Okay, let's dig in!

Syllabus

  • Defensive Programming Basics
    • Introduction To Defensive Programming
    • Strict Typing
    • Guard Clauses And Avoiding Invalid State
  • Embracing Immutability
    • Immutable Dates
    • Objects As Pseudo Structs
    • Rich Objects And Data Bags
    • Writing Our Own Immutable Objects
  • Power of Value Objects
    • Value Objects
    • Cooperation Between Value Objects
    • Value Objects With Eloquent
  • Static Analysis With PHPStan
    • Phpstan: An Introduction
    • Phpstan: Generics And Class Strings
    • Phpstan: Edge Cases, Multi Type Generics, And More
    • Phpstan: Integrating With Laravel
  • Domain Design Tools
    • Domain Invariants And Business Rules
    • Automated Refactoring With Rector
  • Automation and CI
    • Continuous Integration With Github Actions
    • Closing Thoughts

Taught by

Mateus Guimarães

Reviews

Start your review of Defensive Laravel

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.