Skip to content

Tag: laravel

How to update deep json data in laravel

I need to update my data in json column. Code I have all my data ready in controller and there is no issue with data, all I need is to update my json data mentioned in this part: Database screenshot Database data cart_data column Any idea? Answer The answer from @Kurt Friars is good. If you needed to pull the

Sentry + Laravel: how to log an already catched Exception?

We’re using Laravel ( 5.x to 7.x ) in a lot of project and all integrated with Sentry. In some edge case we need to catch some recoverable exceptions to allow page flow to go on using fallbacks, but we also would like to log these catched exception to sentry. I cannot find a documented or undocumented w…

empty data in Laravel query

my response always empty ! if I run only one (where) separated in the Query I get data but if I run all three ( where ) Its empty ! my output Answer Change your controller code to something like this And if there’s an OR condition between branch and type then change your code like this

default() is not working in laravel migration

I am creating a to do list using laravel, and I have a table with the columns below: ‘title’, ‘description’, ‘completed’, ‘id’ The ‘completed’ column is set automatically whenever I add a new task to …