make sure is int

This commit is contained in:
Denis Duliçi 2020-06-20 12:15:39 +03:00
parent 306ab0af08
commit 15a0fdca5e

View File

@ -125,6 +125,6 @@ class Category extends Model
*/
public function scopeTransfer($query)
{
return $query->where($this->table . '.type', '=', 'other')->pluck('id')->first();
return (int) $query->other()->pluck('id')->first();
}
}