You can use Eloquent scopes: https://laravel.com/docs/5.5/eloquent#query-scopes
like this:
class User extends Authenticatable {.../** * The "booting" method of the model. * * @return void */ protected static function boot() { parent::boot(); static::addGlobalScope('scopeActive', function (Builder $builder) { $builder->where('active', 1); }); }...