Skip to content

Commit

Permalink
[4.x] Extend Ray modifier for use of the color helper function (#9073)
Browse files Browse the repository at this point in the history
  • Loading branch information
joschuba authored Nov 27, 2023
1 parent b33e27a commit 04dd8c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Modifiers/CoreModifiers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1794,11 +1794,11 @@ public function rawurlencode($value)
*
* @return void
*/
public function ray($value)
public function ray($value, $params)
{
throw_unless(function_exists('ray'), new \Exception('Ray is not installed. Run `composer require spatie/laravel-ray --dev`'));

ray($value);
ray($value)->color(Arr::get($params, 0, 'gray'));

return $value;
}
Expand Down

0 comments on commit 04dd8c6

Please sign in to comment.