AH
Size: a a a
AH
VP
ВЩ
VV
R#
AH
return static::query()
->where('id', '<=', $this->id)
->whereNull('seen_at')
->where(function (Builder $builder) {
$builder
->where(function (Builder $builder) {
$builder
->where('to_id', $this->to_id)
->where('user_id', $this->user_id);
})
->orWhere(function (Builder $builder) {
$builder
->where('to_id', $this->user_id)
->where('user_id', $this->to_id);
});
})
->update([
'seen_at' => now(),
]);
Е
AH
->update()
добавь ->dd()
для дропа или ->dump()
для вывода сообщения и обновления записейe
AH
location / {
try_files $uri $uri/ /index.php?$query_string;
}
https://laravel.com/docs/8.x/deployment#nginxVP
return static::query()
->where('id', '<=', $this->id)
->whereNull('seen_at')
->where(function (Builder $builder) {
$builder
->where(function (Builder $builder) {
$builder
->where('to_id', $this->to_id)
->where('user_id', $this->user_id);
})
->orWhere(function (Builder $builder) {
$builder
->where('to_id', $this->user_id)
->where('user_id', $this->to_id);
});
})
->update([
'seen_at' => now(),
]);
VP
AH
e
AH
Е
AH
Е
Е