Fix model validations

This commit is contained in:
James Brooks
2016-10-19 12:29:16 +01:00
parent a7e8ba3697
commit ebf3c8656f
12 changed files with 53 additions and 54 deletions

View File

@@ -101,7 +101,7 @@ class Subscriber extends Model implements HasPresenter
*/
public function scopeIsGlobal(Builder $query)
{
return $query->where('global', true);
return $query->where('global', '=', true);
}
/**
@@ -116,7 +116,7 @@ class Subscriber extends Model implements HasPresenter
{
return $query->select('subscribers.*')
->join('subscriptions', 'subscribers.id', '=', 'subscriptions.subscriber_id')
->where('subscriptions.component_id', $component_id);
->where('subscriptions.component_id', '=', $component_id);
}
/**