Skip to content

Commit 8dd2fae

Browse files
thewebartisan7kaidesu
authored andcommitted
Using class Str instead of old laravel function (#97)
* Using Facade Str instead of old laravel function * Update RegistersViewLocations.php
1 parent b032afa commit 8dd2fae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Concerns/RegistersViewLocations.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Caffeinated\Themes\Concerns;
44

5+
use Illuminate\Support\Str;
6+
57
trait RegistersViewLocations
68
{
79
/**
@@ -66,6 +68,6 @@ protected function addRegisteredLocation($theme, $parent)
6668
*/
6769
protected function format($name)
6870
{
69-
return ucfirst(camel_case($name));
71+
return ucfirst(Str::camel($name));
7072
}
7173
}

0 commit comments

Comments
 (0)