fill id with uuid everywhere
This commit is contained in:
@@ -10,11 +10,12 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Models\Chat;
|
||||
use App\Concerns\SerializesIdToUuid;
|
||||
|
||||
class Dynamic extends Model
|
||||
{
|
||||
/** @use HasFactory<DynamicFactory> */
|
||||
use HasFactory;
|
||||
use HasFactory, SerializesIdToUuid;
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
|
||||
@@ -9,11 +9,12 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Concerns\SerializesIdToUuid;
|
||||
|
||||
class Ledger extends Model
|
||||
{
|
||||
/** @use HasFactory<LedgerFactory> */
|
||||
use HasFactory;
|
||||
use HasFactory, SerializesIdToUuid;
|
||||
|
||||
protected $fillable = [
|
||||
'dynamic_id',
|
||||
|
||||
@@ -10,11 +10,12 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphOne;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Concerns\SerializesIdToUuid;
|
||||
|
||||
class Mutation extends Model
|
||||
{
|
||||
/** @use HasFactory<MutationFactory> */
|
||||
use HasFactory;
|
||||
use HasFactory, SerializesIdToUuid;
|
||||
|
||||
protected $fillable = [
|
||||
'ledger_id',
|
||||
|
||||
@@ -6,10 +6,11 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Support\Str;
|
||||
use App\Concerns\SerializesIdToUuid;
|
||||
|
||||
class PredefinedMutation extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
use HasFactory, SerializesIdToUuid;
|
||||
|
||||
protected $fillable = [
|
||||
'ledger_id',
|
||||
|
||||
+2
-1
@@ -15,6 +15,7 @@ use Laravel\Fortify\Contracts\PasskeyUser;
|
||||
use Laravel\Fortify\PasskeyAuthenticatable;
|
||||
use Laravel\Fortify\TwoFactorAuthenticatable;
|
||||
use NotificationChannels\WebPush\HasPushSubscriptions;
|
||||
use App\Concerns\SerializesIdToUuid;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
@@ -34,7 +35,7 @@ use NotificationChannels\WebPush\HasPushSubscriptions;
|
||||
class User extends Authenticatable implements PasskeyUser
|
||||
{
|
||||
/** @use HasFactory<UserFactory> */
|
||||
use HasFactory, HasPushSubscriptions, Notifiable, PasskeyAuthenticatable, TwoFactorAuthenticatable;
|
||||
use HasFactory, HasPushSubscriptions, Notifiable, PasskeyAuthenticatable, TwoFactorAuthenticatable, SerializesIdToUuid;
|
||||
|
||||
public function dynamics()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user