Skip to content
This repository was archived by the owner on Aug 23, 2024. It is now read-only.

Latest commit

 

History

History
14 lines (11 loc) · 546 Bytes

File metadata and controls

14 lines (11 loc) · 546 Bytes

WpLink

Build Status

Detect if a link is internal to enable easily setting target="_blank" for external links.

Usage

Require the library with composer and use it in your blades like this:

<a href="{{ $uri }}" {!! \Onvardgmbh\WpLink::target($uri) !!}>Foo</a>

Run Tests

To run the tests, run composer run-script test or composer run-script test:dox in the project root directory.