Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add like and equal in same query in laravel

$data = DB::table('borrowers')
        ->join('loans', 'borrowers.id', '=', 'loans.borrower_id')
        ->select('borrowers.*', 'loans.*')   
        ->where('loan_officers', 'like', '%' . $officerId . '%')
        ->where('loans.maturity_date', '<', date("Y-m-d"))
        ->get();
Comment

PREVIOUS NEXT
Code Example
Php :: how do i logout wordpress without confirmation 
Php :: laravel model relationship find soft deleted 
Php :: date format php 
Php :: php header redirect same page 
Php :: doctrine mongodb native query 
Php :: block direct access to php images 
Php :: bind multiple data in one id in php using php using for loop 
Php :: Uncaught Error: Call to undefined function "themeblvd_add_builder_element()" 
Php :: laravel faker boolean 
Php :: Search for text in string php 
Php :: laravel go back to previous page blade 
Php :: AppHttpControllersValidator not found 
Php :: php function argument spicific types array check 
Php :: php get end date of month 
Php :: checks number only in php 
Php :: phpspreadsheet password protected 
Php :: Yii2 Fatal Error: Require_Once() 
Php :: how to hide get parameters in url php 
Php :: wordpress get post taxonomy terms 
Php :: laravel optional route parameter in middle of url 
Php :: laravel required if another field has value 
Php :: wpml language switcher shortcode 
Php :: laravel store multiple files 
Php :: laravel get class name 
Php :: larvel check two password 
Php :: php number to word 
Php :: php get php.ini location from termina 
Php :: laravel string builder 
Php :: return back in laravel 
Php :: current loggedin user laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =