Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get a json element from a DB laravel

$results = DB::table('testing')
             ->select(
                'id',
                DB::raw('json_extract(params, "$.4") as number'),
                'type'
                'created_at'
)->get();
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #json #element #DB #laravel
ADD COMMENT
Topic
Name
1+4 =