Do not use arr_* or str_* helpers

This commit is contained in:
James Brooks
2019-02-01 20:54:14 +00:00
parent b956a771f1
commit 497cbe5525
12 changed files with 28 additions and 17 deletions

View File

@@ -13,6 +13,7 @@ namespace CachetHQ\Cachet\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Str;
/**
* This is the invite class.
@@ -51,7 +52,7 @@ class Invite extends Model
self::creating(function ($invite) {
if (!$invite->code) {
$invite->code = str_random(20);
$invite->code = Str::random(20);
}
});
}