phpvms/app/Models/Observers/SubfleetObserver.php
2018-08-26 16:40:04 +00:00

22 lines
354 B
PHP

<?php
namespace App\Models\Observers;
use App\Models\Subfleet;
/**
* Class SubfleetObserver
*/
class SubfleetObserver
{
/**
* @param Subfleet $model
*/
public function creating(Subfleet $model)
{
if (!filled($model->ground_handling_multiplier)) {
$model->ground_handling_multiplier = 100;
}
}
}