Skip to content

Commit

Permalink
feat(str) usa o helper str no lugar o facade
Browse files Browse the repository at this point in the history
  • Loading branch information
irineujunior committed Mar 26, 2024
1 parent 41b48ca commit 6e12982
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/View/Components/Card/Subtitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Agenciafmd\Ui\View\Components\Card;

use Illuminate\Contracts\View\View;
use Illuminate\Support\Str;
use Illuminate\View\Component;

class Subtitle extends Component
Expand Down Expand Up @@ -36,7 +35,7 @@ public function render(): string|View

public function fallback(): string
{
return Str::of($this->subtitle)
return str($this->subtitle)
->stripTags()
->squish()
->lower()
Expand Down

0 comments on commit 6e12982

Please sign in to comment.