laravel check if model relation exists
$model->relation()->exists()
Source: stackoverflow.com
laravel check if model has relation
use App\Models\Post; // Retrieve all posts that have at least one comment... $posts = Post::has('comments')->get();
Source: laravel.com