Последняя версия с сервера прошлого разработчика
This commit is contained in:
14
app/Domain/Complaints/Observers/ComplaintObserver.php
Executable file
14
app/Domain/Complaints/Observers/ComplaintObserver.php
Executable file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
namespace App\Domain\Complaints\Observers;
|
||||
|
||||
use App\Domain\Complaints\Models\Complaint;
|
||||
|
||||
class ComplaintObserver
|
||||
{
|
||||
public function updating(Complaint $complaint)
|
||||
{
|
||||
if (empty($complaint->moderator_checking_id)) {
|
||||
$complaint->moderator_checking_id = auth()->user()->id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user