Search
 
SCRIPT & CODE EXAMPLE
 

PHP

eloquent where parentheses

Model::where('a',1)->where(function($query) {
    $query->where('b', 2)->orWhere('c',3);
})->get();
Comment

PREVIOUS NEXT
Code Example
Php :: __dir__ in php 
Php :: laravel upload base64 image 
Php :: array helper array_push laravel 
Php :: laravel 9 Route::controller 
Php :: comments in php 
Php :: Call to a member function move() on string 
Php :: laravel pagination with query string, laravel pagination with string 
Php :: laral db innodb 
Php :: check if given date time is of today or yesterday php 
Php :: get only the first two word from a string php 
Php :: laravel array cast 
Php :: laravel log level 
Php :: laravel migration table bigint 
Php :: simple_form_for id 
Php :: assign $variable of key value pair array to multiple variables php 
Php :: docker php 7.2 add ext-mongodb 
Php :: laravel apiresource 
Php :: how to display the database table names list in codeigniter 
Php :: Laravel stop on first validation error 
Php :: Creating default object from empty value 
Php :: replace text in string php 
Php :: laravel sanctum axios Unauthenticated 
Php :: how to include file in laravel blade 
Php :: php description limit 
Php :: laravel collective form include image 
Php :: php array_walk 
Php :: how to read sqlite file in php 
Php :: laravel package for getID3() 
Php :: get all post 
Php :: select multiple option in laravel 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =