The best way to integrate in Laravel with CRUD database control

QuestionsThe best way to integrate in Laravel with CRUD database control
Filip Spacek asked 1 day ago

Hello,

Please advise on the best way to call Grid in Laravel.
Nowhere in the documentation did I find a default callback method for the Controller to handle CRUD.

The Grid only calls my store() method on every event for all requests.

So far I am testing the free grid and considering getting the PRO version.

If a sample project would be available for viewing I would be very happy.

Thank you for your help.

 

1 Answers
Abu answered 13 hours ago

By default, grid only need single controller method as add, edit and delete operations are performed by the datagrid itself and it does not use the laravel data models.

In case you need to stop grid function and use your custom add, edit, delete methods … you will need datagrid add/edit callback event as mentioned here: https://www.gridphp.com/docs/grid-events/

Let me know if you mean something else.

Your Answer

12 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?