diff --git a/app/View/Components/Dropdown/Link.php b/app/View/Components/Dropdown/Link.php index 473ae059c..821239b3a 100644 --- a/app/View/Components/Dropdown/Link.php +++ b/app/View/Components/Dropdown/Link.php @@ -7,6 +7,7 @@ use App\Abstracts\View\Component; class Link extends Component { public $href; + public $target; /** * Create a new component instance. @@ -14,9 +15,10 @@ class Link extends Component * @return void */ public function __construct( - $href = '', + string $href = '', string $target = '_self' ) { - $this->href = $href; + $this->href = $href; + $this->target = $target; } /** diff --git a/resources/views/components/dropdown/link.blade.php b/resources/views/components/dropdown/link.blade.php index ccb3a1aa5..898a18d2a 100644 --- a/resources/views/components/dropdown/link.blade.php +++ b/resources/views/components/dropdown/link.blade.php @@ -1,5 +1,5 @@
- + {!! $slot !!}