If you have a JSON column in your migrations, and you are looking to update the value of one of its fields. Here is how you can do it $booking->update([ 'stripePayment->paymentStatus' => 'completed', ]); For this to work you should be on MySQL v 5.7 + and also if you are using $fillable property to mark the fillable fields in the model, then you should add stripePayment->paymentStatus in the fillable array. Otherwise you could just add the empty guarded property.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners