mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Fixed where clause for MariaDB compatibility
This commit is contained in:
@@ -85,7 +85,7 @@ class DatabaseNotifications extends Component
|
||||
public function getNotificationsQuery(): Builder | Relation
|
||||
{
|
||||
/** @phpstan-ignore-next-line */
|
||||
return $this->getUser()->notifications()->where('data->format', 'filament');
|
||||
return $this->getUser()->notifications()->whereRaw('JSON_UNQUOTE(JSON_EXTRACT(data,\'$.format\')) = "filament"');
|
||||
}
|
||||
|
||||
public function getUnreadNotificationsQuery(): Builder | Relation
|
||||
|
||||
Reference in New Issue
Block a user