mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-01-16 19:05:08 -05:00
22 lines
396 B
PHP
22 lines
396 B
PHP
<?php
|
|
|
|
|
|
namespace Modules\Account\Observers;
|
|
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Modules\Account\Entities\Transaction;
|
|
|
|
class TransactionsObserver
|
|
{
|
|
public function creating(Transaction $transaction)
|
|
{
|
|
$transaction->created_by = getParentSellerId();
|
|
}
|
|
|
|
public function updating(Transaction $transaction)
|
|
{
|
|
$transaction->updated_by = Auth::id();
|
|
}
|
|
}
|