Minor fixes.
This commit is contained in:
parent
ddf09fe00c
commit
c8b93095dc
7 changed files with 26 additions and 32 deletions
|
|
@ -16,6 +16,9 @@ class Character extends Model
|
|||
'name',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get all cards associated with this character
|
||||
*/
|
||||
public function cards()
|
||||
{
|
||||
return $this->hasMany(Card::class);
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@ class Raid extends Model
|
|||
'name',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get all cards associated with this raid
|
||||
*/
|
||||
public function cards()
|
||||
{
|
||||
return $this->hasMany(Card::class);
|
||||
|
|
|
|||
|
|
@ -47,14 +47,4 @@ class Setting extends Model
|
|||
{
|
||||
return $q->where('id', Hashids::decode($hash));
|
||||
}
|
||||
|
||||
/*
|
||||
public function __call($method, $parameters)
|
||||
{
|
||||
if ($method == 'find' && is_string($parameters[0])) {
|
||||
$parameters[0] = Hashids::decode($$parameters[0]);
|
||||
}
|
||||
|
||||
return parent::__call($method, $parameters);
|
||||
} */
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue