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
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners