How to add a variables in a where condition?
How to add a variables in a where condition?
![vijay178131](https://secure.gravatar.com/avatar/046ea1be626347fa35ff6bbcc151adcc/?default=https%3A%2F%2Fvanillicon.com%2F046ea1be626347fa35ff6bbcc151adcc_200.png&rating=g&size=120)
****I try this code but it has a error********
Editor::->where( function ($q) {
$q->where( 'id',$limit );
} )
This discussion has been closed.
****I try this code but it has a error********
Editor::->where( function ($q) {
$q->where( 'id',$limit );
} )
Answers
it has a error
What is the error?
This page here may help...