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

Commit

Permalink
Merge pull request #69 from Lloople/patch-1
Browse files Browse the repository at this point in the history
Change array_first for Arr::first
  • Loading branch information
freekmurze authored Feb 1, 2019
2 parents 1ecfe1b + c3d809c commit b5ee49a
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 b5ee49a

Please sign in to comment.