plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Feature Request]: Support for staudenmeir/laravel-cte

Open davidseverwright opened this issue 2 months ago • 1 comments

Feature Description

staudenmeir/laravel-cte adds support for MySQL's Common Table Expressions by replacing the base builder with \Staudenmeir\LaravelCte\Query\Builder, which adds some functions like withExpression().

If I directly call new \Staudenmeir\LaravelCte\Query\Builder() it works fine, but if I just do DB::query()->withExpression() PhpStorm gets confused.

It also adds a trait (\Staudenmeir\LaravelCte\Eloquent\QueriesExpressions) to replace the query builder for a model.

davidseverwright avatar Sep 30 '25 10:09 davidseverwright