Skip to content

Commit

Permalink
[8.x] Make the example functionnal (laravel#7320)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeddyBear06 authored Sep 27, 2021
1 parent 91b193a commit 8ecebbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,11 @@ The `Arr::toCssClasses` conditionally compiles a CSS class string. The method ac

use Illuminate\Support\Arr;

$array = ['p-4', 'font-bold' => $isActive, 'bg-red' => $hasError];

$isActive = false;
$hasError = true;

$array = ['p-4', 'font-bold' => $isActive, 'bg-red' => $hasError];

$classes = Arr::toCssClasses($array);

/*
Expand Down

0 comments on commit 8ecebbe

Please sign in to comment.