-
Notifications
You must be signed in to change notification settings - Fork 11
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
[CollectionProvider]: Need Help #40
Comments
You do not have the correct Add this:
|
@timgws Thank you, I knew I was doing something stupid as hell. |
Hey Looks like some thing is still wrong in my project code. I am getting an ajax error. by looking request on my localhost -
I guess request is being send to wrong URL it should be like Please tell me, what am I doing wrong? |
@mverma16 it looks like you are not setting the endpoint for the route that will handle the datatable request. (#20) Build your datatable like this: {{
$datatable
->headers() // tell the table to render the header in the table
->columns('id', '#') // show # in the header instead of 'id'
->columns('name', 'Full name') // show 'Full name' in the header instead of 'name'
->endpoint(route('asd.asd'))
// render just the table
->table()
}} You should replace |
I used chumper/datatable in my project but after upgrading my Laravel version to 5.2 I started facing issues in sorting in collection. So now I am trying to use Openskill Datatable in laravel 5.2. I tried to implement basic datatable by following the exact steps described in documentation.
I am getting an error saying that Class CollectionProvider not found.
My controller function looks like
And in my view
I am not sure, am I doing something wrong?
Please help me out.
The text was updated successfully, but these errors were encountered: