Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

unique data from eloquent laravel

$users = DB::table('users')
            ->select('id','name', 'email')
            ->groupBy('name')
            ->get();
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #unique #data #eloquent #laravel
ADD COMMENT
Topic
Name
7+5 =