????
Current Path : /home/thenclexdoctor.com/public_html/app/Models/Observers/ |
Current File : /home/thenclexdoctor.com/public_html/app/Models/Observers/AccountingNumberObserver.php |
<?php namespace App\Models\Observers; use App\Models\Accounting; class AccountingNumberObserver { public function saving(Accounting $model) { // Check if the number is below zero if ($model->amount < 0) { $model->amount = 0; } } }
Sorry, this page is not available...