public static function boot() { parent::boot(); self::saving(function ($issue) { $issue->set_iid(); }); }