forked from eatvio/eatvio-infra
04 10 2023 snapshot
This commit is contained in:
@@ -11,7 +11,7 @@ class Chat extends Model
|
||||
use HasFactory;
|
||||
protected $casts = ['created_at' => 'datetime:Y-m-d H:i:s'];
|
||||
|
||||
public function scopeWithLastUserMessage(mixed $query, int $userId): Chat
|
||||
public function scopeWithLastUserMessage(mixed $query, int $userId)
|
||||
{
|
||||
return $query
|
||||
->where('from_user_id', $userId)
|
||||
|
||||
Reference in New Issue
Block a user