SPATIE

  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Readable Laravel

  1. Introduction
  2. Improving readability by decreasing indentation
  3. Using lookup tables
  4. Refactor complex conditionals
  5. Getting autocompletion on models and API resources
  6. Using Blade components for layouts
  7. Exploring Form Requests
  8. Customising Eloquent collections

This video is only for members.

You'll need to log in to view this video!

Log in or create a free account

Using lookup tables

If you have a big switch statement, or collection of if's, check if you can refactor is to a more readable variant: the lookup table.

Links

  • Lookup table definition

Previous: Improving readability by decreasing indentation Next: Refactor complex conditionals
  • Products
  • Open Source
  • Courses
  • Web Development
VacanciesAboutBlogDocsGuidelinesMerch ↗ Log in

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • Twitter
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Click to call us