Skip to content

Instantly share code, notes, and snippets.

@slow-is-fast
Created January 15, 2022 01:39
Show Gist options
  • Save slow-is-fast/d56631397c7050600a38fd8c9416609e to your computer and use it in GitHub Desktop.
Save slow-is-fast/d56631397c7050600a38fd8c9416609e to your computer and use it in GitHub Desktop.
random_color
function random_color()
{
$colors = ['red', 'yellow', 'aqua', 'blue', 'light-blue', 'green', 'navy', 'teal', 'olive',
'orange', 'fuchsia', 'purple', 'maroon', 'black', 'red-active', 'yellow-active', 'aqua-active',
'blue-active', 'light-blue-active', 'green-active', 'navy-active', 'teal-active', 'olive-active',
'orange-active', 'fuchsia-active', 'purple-active', 'maroon-active', 'black-active',];
return Arr::random($colors);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment