make sure is int
This commit is contained in:
parent
306ab0af08
commit
15a0fdca5e
@ -125,6 +125,6 @@ class Category extends Model
|
|||||||
*/
|
*/
|
||||||
public function scopeTransfer($query)
|
public function scopeTransfer($query)
|
||||||
{
|
{
|
||||||
return $query->where($this->table . '.type', '=', 'other')->pluck('id')->first();
|
return (int) $query->other()->pluck('id')->first();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user