Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to pass variable in inside function into where in laravel

DB::table('users')->where(function ($query) use ($activated) {
    $query->where('activated', '=', $activated);
})->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #variable #function #laravel
ADD COMMENT
Topic
Name
9+8 =