Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created Aug 1, 2021
Embed
What would you like to do?
<?php
public function scopeNotBanned(\Illuminate\Database\Eloquent\Builder $builder) {
return $builder->whereBanned(false);
}
<?php
User::notBanned()->get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment