Laravel robi w modelu
$authors = Author::doesnthave('books')->get();
Mohamad
$authors = Author::doesnthave('books')->get();