pluck with wherenotin clause in laravel code example
Example 1: DB::table('users')->get(); id 1
$users = DB::table('users')where('id','=', $userid)->get();
Example 2: laravel find query
foreach ($flights as $flight) {
echo $flight->name;
}
$users = DB::table('users')where('id','=', $userid)->get();
foreach ($flights as $flight) {
echo $flight->name;
}