You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to search a column that is defined as an array or JSON type in the database?I've data in this format
$login_credentials = [
'name' =>"Test !",
'email' => "a@gmail.com",
'access_token' => $token_details['access_token'],
'refresh_token' => $token_details['refresh_token'],
'expires_in' => (time() + $token_details['expires_in'])
];
and this array I store in a table column named "login_credentials" in an encrypted format.But I'm unable to search row by email
$account = ChannelAccount::whereJsonContains('login_credentials', ['email' => $email])->first();
The text was updated successfully, but these errors were encountered:
Is it possible to search a column that is defined as an array or JSON type in the database?I've data in this format
$login_credentials = [
'name' =>"Test !",
'email' => "a@gmail.com",
'access_token' => $token_details['access_token'],
'refresh_token' => $token_details['refresh_token'],
'expires_in' => (time() + $token_details['expires_in'])
];
and this array I store in a table column named "login_credentials" in an encrypted format.But I'm unable to search row by email
$account = ChannelAccount::whereJsonContains('login_credentials', ['email' => $email])->first();
The text was updated successfully, but these errors were encountered: