I need your support to use whereNOTIn with laravel 5 to show all id in (times) table and they not in (booking)table and user_id
$bookappoitm=DB::table('times')
->where('times.Dates_id',$id)
->whereNOTIn('id',function($query){
$query->select('times_id')->from('bookappoitments')
->where('users_id',Auth::user()->id)
->get();
})->get();
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2UqVAq4
via IFTTT
Aucun commentaire:
Enregistrer un commentaire