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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners