Back to the Learning!

Laracasts is packed full with over 1,000 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

Published On May. 14th 2015

Managing Mass User Settings

Run Time 16:24

Download

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.