in Laravel
To create a JSON field, all we need to do in Laravel migration is use ->json() method: Next, we need to tell our model to cast that column from JSON to an array automatically: To avoid that, we need to eliminate null values from the array. I will use Eloquent mutator feature and transform the array to the one without […]
You must be logged in to post a comment.