Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
Change array_first for Arr::first since it will be deprecated in Lara…
Browse files Browse the repository at this point in the history
…vel 5.8
  • Loading branch information
Lloople authored Feb 1, 2019
1 parent 1ecfe1b commit c3d809c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Spatie\BladeX;

use Illuminate\Support\Arr;
use Illuminate\Contracts\Support\Arrayable;
use Spatie\BladeX\Exceptions\CouldNotRegisterComponent;

Expand Down Expand Up @@ -61,7 +62,7 @@ protected function determineDefaultTag(string $view): string
$tag = kebab_case(end($baseComponentName));

if (str_contains($view, '::') && ! str_contains($tag, '::')) {
$namespace = array_first(explode('::', $view));
$namespace = Arr::first(explode('::', $view));
$tag = "{$namespace}::{$tag}";
}

Expand Down

0 comments on commit c3d809c

Please sign in to comment.