Skip to content

Commit

Permalink
replace str function to Str class
Browse files Browse the repository at this point in the history
  • Loading branch information
vildanbina committed Apr 6, 2022
1 parent e126415 commit 8ef951a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WizardComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Illuminate\Contracts\View\View;
use Illuminate\Database\Eloquent\Model;
use Livewire\Component;
use Str;
use Vildanbina\LivewireWizard\Components\Step;
use Vildanbina\LivewireWizard\Concerns\HasHooks;
use Vildanbina\LivewireWizard\Concerns\HasState;
Expand Down Expand Up @@ -126,7 +127,7 @@ public function updated($name, $value): void
private function callHooksStep($hook, $name, $value): void
{
$stepInstance = $this->getCurrentStep();
$name = str($name);
$name = Str::of($name);

$propertyName = $name->studly()->before('.');
$keyAfterFirstDot = $name->contains('.') ? $name->after('.')->__toString() : null;
Expand Down

0 comments on commit 8ef951a

Please sign in to comment.