Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisrhymes committed Jan 23, 2024
1 parent 200cae1 commit 7832a55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ $post->brokenLinks[0]->exception_message; // The optional exception message

### Relative links

If you have relative links within a html field in your model (that begin with '/', rather than absolute urls beginning with 'http'), then you can pass a 3rd parameter as the base. The CheckModelForBrokenLinks job will prepend the base to the relative url before it is checked.
If you have relative links within a html field in your model (that don't begin with 'http'), then you can pass a 3rd parameter as the base. The CheckModelForBrokenLinks job will prepend the base to the relative url before it is checked.

If your relative links don't begin with `/`, then ensure your base parameter has a trailing slash, `'http://example.com/'`.

```php
use ChrisRhymes\LinkChecker\Jobs\CheckModelForBrokenLinks;
Expand Down

0 comments on commit 7832a55

Please sign in to comment.