laravel override eloquent all function

37

public static function all($columns = array('*'))
    {
        $columns = is_array($columns) ? $columns : func_get_args();

        $instance = new static;

        return $instance->newQuery()->where('account_type', '!=', 'SuperAdmin')->get($columns);
    }

Comments

Submit
0 Comments