Eloquent query in gridphp

QuestionsEloquent query in gridphp
Gert Zumtobel asked 11 months ago

Can’t you use the Eloquent query in gridphp to query Laravel? For security reasons, query instead of using normal Mysql queries

Gert

1 Answers
Abu Ghufran Staff answered 11 months ago

Hello,

If you wish you use eloquent, you can use callback event, with ignoring the datagrid implementation and use the laravel database functions inside it to add/edit/delete.

More reference here: https://www.gridphp.com/docs/grid-events/

To select data, we do several modifications in query to adjust page, search and sort operations so It’s not doable with eloquent.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

1 + 2 =

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?