EloquentFilter\Filterable::scopeWhereBeginsWith PHP Method

scopeWhereBeginsWith() public method

WHERE $column LIKE $value% query.
public scopeWhereBeginsWith ( $query, $column, $value, string $boolean = 'and' ) : mixed
$query
$column
$value
$boolean string
return mixed
    public function scopeWhereBeginsWith($query, $column, $value, $boolean = 'and')
    {
        return $query->where($column, 'LIKE', "{$value}%", $boolean);
    }