04 10 2023 snapshot

This commit is contained in:
Anatoliy Poloz
2023-10-04 17:57:09 +03:00
parent 1e546fa48e
commit 09a00744a0
441 changed files with 41582 additions and 254079 deletions

View File

@@ -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)