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

Call to undefined method ViewComponents\Grids\ServiceProvider::isDeferred() #22

Open
amraei opened this issue Aug 12, 2016 · 4 comments

Comments

@amraei
Copy link

amraei commented Aug 12, 2016

I'm installing Grids on Laravel 5.2. When I add service provider to app.php, I get this error:
Call to undefined method ViewComponents\Grids\ServiceProvider::isDeferred()

I looked around and found view-components/grids/src/ServiceProvider.php is declaring a ServiceProvider class. I think it should has another name like GridsServiceProvider and extend Illuminate\Support\ServiceProvider.

@Nayjest
Copy link
Member

Nayjest commented Aug 12, 2016

Hi!
You don't need to add any service-providers from view-components package to Laravel's app.php, that classes are used internally by view-components.

The only thing you need for using grids with Laravel is https://github.com/view-components/eloquent-data-processing.

Just include this package using composer to be able to use EloquentDataProvider with grids.

@Nayjest Nayjest closed this as completed Aug 12, 2016
@Nayjest
Copy link
Member

Nayjest commented Aug 12, 2016

Added PhpDoc comment for Laravel users here to avoid such mistakes. Hope that will help.

Give me know if you will have another issues.

@amraei
Copy link
Author

amraei commented Aug 12, 2016

I also suggest to add it to installation guide. Specially for those users who are using nayjest/grids, it's a confusion.

@Nayjest Nayjest reopened this Aug 12, 2016
@Nayjest
Copy link
Member

Nayjest commented Aug 12, 2016

reopened: @todo upd. installation guide

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

No branches or pull requests

2 participants