mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-03-15 07:28:30 +01:00
parent
480268a606
commit
e956959f69
@ -52,6 +52,7 @@ class Group extends Model
|
||||
*/
|
||||
protected $casts = [
|
||||
'twofaccounts_count' => 'integer',
|
||||
'user_id' => 'integer',
|
||||
];
|
||||
|
||||
/**
|
||||
|
@ -145,7 +145,9 @@ class TwoFAccount extends Model implements Sortable
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $casts = [];
|
||||
protected $casts = [
|
||||
'user_id' => 'integer',
|
||||
];
|
||||
|
||||
/**
|
||||
* The event map for the model.
|
||||
|
@ -27,7 +27,11 @@ public function test_model_configuration()
|
||||
['created_at', 'updated_at'],
|
||||
['*'],
|
||||
[],
|
||||
['id' => 'int', 'twofaccounts_count' => 'integer'],
|
||||
[
|
||||
'id' => 'int',
|
||||
'twofaccounts_count' => 'integer',
|
||||
'user_id' => 'integer'
|
||||
],
|
||||
[
|
||||
'deleting' => GroupDeleting::class,
|
||||
'deleted' => GroupDeleted::class,
|
||||
|
@ -33,7 +33,10 @@ public function test_model_configuration()
|
||||
[],
|
||||
['*'],
|
||||
[],
|
||||
['id' => 'int'],
|
||||
[
|
||||
'id' => 'int',
|
||||
'user_id' => 'integer'
|
||||
],
|
||||
['deleted' => TwoFAccountDeleted::class],
|
||||
['created_at', 'updated_at'],
|
||||
\Illuminate\Database\Eloquent\Collection::class,
|
||||
|
Loading…
Reference in New Issue
Block a user