mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
23 lines
610 B
PHP
23 lines
610 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Currencies\Services;
|
|
|
|
use App\Classes\General\Eloquent\AbstractUpdateRecord;
|
|
use App\Models\Currency;
|
|
use App\Models\CurrencyLog;
|
|
|
|
class CreatesCurrencyLog extends AbstractUpdateRecord
|
|
{
|
|
/**
|
|
* @param Currency $object
|
|
* @return \Illuminate\Database\Eloquent\Model
|
|
* @throws \App\Classes\Exceptions\MalformedRequestException
|
|
*/
|
|
public function execute(Currency $object) {
|
|
$model = new CurrencyLog();
|
|
$model->currency_id = $object->id;
|
|
$model->created_by = Auth()->user()->id;
|
|
return $this->handler($model);
|
|
|
|
}
|
|
} |