atau di mana Laravel
MyMode::where(['user_id' => 1])
->orWhere(['assigned_to' => 1])
->get();
Learn it with muhindo
MyMode::where(['user_id' => 1])
->orWhere(['assigned_to' => 1])
->get();
$users = DB::table('user')->select('id', 'name', 'email','api_token','created_at')
->where('email' , $email)
->where('name' , $name)
->get();
$projects = Project::whereHas('projectOffers', function ($offer) {
$offer->where('teacher_id', "Ahmed");
$offer->where('status_id', "Accepted");
})->where('status_id', "inprogress")->get();
$users = DB::table('users')->whereIn('id', array(1, 2, 3))->get()
$users = DB::table('users')
->whereMonth('created_at', '12')
->get();