Search
 
SCRIPT & CODE EXAMPLE
 

PHP

combine 2 columns search query laravel

public function index()
{
    $users = User::select("*", DB::raw("CONCAT(users.first_name,' ',users.last_name) as full_name"))
        ->get();
  
    return view('home', compact('users'));
}
Comment

PREVIOUS NEXT
Code Example
Php :: php random 
Php :: file exist php 
Php :: return json in middleware laravel 
Php :: wordpress create shortcode 
Php :: check if file empty php 
Php :: how to make a config file for php 
Php :: php loops 
Php :: Catches the last error php 
Php :: php multi condition if 
Php :: PHP Display Posts by Category in WordPress 
Php :: Remove last symbol from string 
Php :: Diferencia entre dias PHP 
Php :: Laravel stop on first validation error 
Php :: how to check where function defined in php 
Php :: where () laravel Eloquent 
Php :: install phpmyadmin on vagrant homestead on mac 
Php :: laravel pagination problem in blade 
Php :: wp php get product item attributes name 
Php :: php loop html select option 
Php :: php array get value at index 
Php :: specification migration laravel 
Php :: laravel collection max 
Php :: wordpress is_tag function 
Php :: how make a variable global php 
Php :: upload video in laravel 
Php :: php send json post 
Php :: how to trim string in laravel 
Php :: php if boolean check 
Php :: foreign key in laravel 9 
Php :: parsing html in php 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =