orWhere() inside you can pass an array of parameters .
“Usual” way:
$q->where('x', 1);$q->orWhere('y', 2);$q->orWhere('z', 3);You can do it like this:
$q->where('x', 1);$q->orWhere(['y' => 2, 'z' => 3]);
Laravel blogs, packed with expert tips, step-by-step tutorials, and best practices for effective web development. Unlock the power of Laravel with our in-depth articles and stay ahead in the world of modern web application development.
1) The create() Method The create() method is a powerful and convenient way to store data in your Laravel application. It is typically use...
No comments:
Post a Comment