Answers for "laravel create json column"

PHP
1

laravel migration column type json

//The json method creates a JSON equivalent column:
$table->json('options');
//jsonb() The jsonb method creates a JSONB equivalent column:
$table->jsonb('options');
Posted by: Guest on January-10-2022
0

laravel where json array column

whereRaw("JSON_CONTAINS(user_id, '[3]' )")->get();
Posted by: Guest on October-28-2020

Code answers related to "laravel create json column"

Browse Popular Code Answers by Language