Alimentalos/Backend

View on GitHub
app/Observers/AlertObserver.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace App\Observers;

use App\Models\Alert;

class AlertObserver
{
    /**
     * Handle the alert "creating" event.
     *
     * @param Alert $alert
     * @return void
     */
    public function creating(Alert $alert)
    {
        $alert->uuid = uuid();
    }
}