plugin
plugin copied to clipboard
[Feature Request]: Support for staudenmeir/laravel-cte
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.