Link Checker is a Laravel package that will check for broken links in an HTML field of a specified model's fields. Migrate the database php artisan migrate Add the Trait to your models Add the HasBrokenLinks trait to your model failed() and if it fails it is determined to be a broken link. Any broken links will be stored in the broken_links table, with a polymorphic relationship back to the original model.
$post = Post::first(); $post->brokenLinks; // A collection of broken links for the model $post->brokenLinks->broken_link; // The link that is broken $post->brokenLinks->exception_message; // The optional exception message