for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Models\Concerns\Denomination;
use App\Models\Denomination;
use App\Support\Model\Event as ModelEvent;
use Illuminate\Support\Facades\Storage;
/**
* @see \App\Models\Denomination
*/
trait Event
{
use ModelEvent;
* Boot the trait on the model.
*
* @return void
protected static function bootEvent()
static::deleting(function (Denomination $model) {
Storage::delete(Denomination::IMAGE_PATH . '/' . $model->getRawOriginal('image'));
$model->getRawOriginal('image')
array|mixed
concatenation
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
Storage::delete(Denomination::IMAGE_PATH . '/' . /** @scrutinizer ignore-type */ $model->getRawOriginal('image'));
});
}