Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined function camel_case() in 1.4.0 version #87

Closed
ITKain opened this issue Feb 21, 2019 · 1 comment · Fixed by #93
Closed

Undefined function camel_case() in 1.4.0 version #87

ITKain opened this issue Feb 21, 2019 · 1 comment · Fixed by #93

Comments

@ITKain
Copy link

ITKain commented Feb 21, 2019

If the project uses a separate Eloquent ORM, instead of a full-fledged Laravel, then an error occurs:
Call to undefined function EloquentFilter\\camel_case()

It would be better not to depend on Laravel helpers.

@ITKain ITKain changed the title Undefined function camel_case() after composer update Undefined function camel_case() in 1.4.0 version Feb 21, 2019
@Tucker-Eric
Copy link
Owner

Ahh, we do require illuminate/support so we can swap out camel_case with Illuminate\Support\Str::camel here https://github.com/Tucker-Eric/EloquentFilter/blob/master/src/ModelFilter.php#L202 if you wanted to send a pr for it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants