src/Models/Invite.php
public function scopeUseless($query)
    {
        return $query
            ->where(function ($q) {
                $this->scopeExpired($q);
            })
            ->orWhere(function ($q) {
                $this->scopeFull($q);
            });
    }
public function scopeUseless($query)
    {
        return $query
            ->where(function ($q) {
                $this->scopeExpired($q);
            })
            ->orWhere(function ($q) {
                $this->scopeFull($q);
            });
    }
public function scopeUseless ( $ query ) { return $ query -> where ( function ( $ q ) { $ this -> scopeExpired ( $ q ) ; } ) -> orWhere ( function ( $ q ) { $ this -> scopeFull ( $ q ) ; } ) ; }
Scope a query to only include useless invites.

@param \Illuminate\Database\Eloquent\Builder $query

@return \Illuminate\Database\Eloquent\Builder
Scope a query to only include useless invites .