feature: keep sidebar and add service layer
This commit is contained in:
@@ -10,6 +10,9 @@ class AddCard extends Model
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'add_card';
|
||||
public $timestamps = false;
|
||||
protected $primaryKey = null;
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'buyer',
|
||||
|
||||
@@ -13,6 +13,7 @@ class Administration extends Model
|
||||
|
||||
|
||||
protected $table = 'administration';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'msnv',
|
||||
|
||||
+16
-1
@@ -24,6 +24,7 @@ class User extends Authenticatable
|
||||
|
||||
|
||||
protected $table = 'user';
|
||||
public $timestamps = false;
|
||||
protected $primaryKey = 'msnv';
|
||||
public $incrementing = false;
|
||||
protected $keyType = 'string';
|
||||
@@ -41,7 +42,6 @@ class User extends Authenticatable
|
||||
|
||||
protected $hidden = [
|
||||
'pass',
|
||||
'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -53,4 +53,19 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->pass;
|
||||
}
|
||||
|
||||
// Disable remember token support in database
|
||||
public function getRememberToken()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function setRememberToken($value)
|
||||
{
|
||||
}
|
||||
|
||||
public function getRememberTokenName()
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user