Back to the Learning

Beep Beep. Subscription Required.

Laracasts is packed full with over 1,500 lessons just like this one.
Sign up to get full access or log in to your account and sit back.

Your Teacher | Jeffrey Way's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.

About This Episode

Published on Nov 11th, 2015

When you only require a handful of user settings for your applications, a few columns in your users or settings table will do the trick nicely. But what about when you have dozens and dozens of configuration options? Well, in these cases, if it makes sense, you might consider encoding a bit of JSON, and saving it to a single column.

In this video, we'll review the essentials of this process, including the use of Eloquent attribute casting. In the follow-up video, we'll take our end-result further, by making it more flexible and easy to use throughout our application.