Orchid\Support\Color constants for Alert levels #2173
cainytheslave
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just wanna discuss/ask something.
When passing a alert level to the
Alert::view
method, this syntax didn't work for me:Documentation Reference
The Error I got:
Undefined constant Orchid\Support\Facades\Alert::error
So..
Orchid\Support\Color
Alert::info
withColor::INFO()
And everything works fine..
The Alert class overwrites all the Support\Color colors. (
Alert::info()
,Alert::success()
, etc)The constants from the Color class are private.
My question now is: Am I missing something obvious or is it just not correct in the docs?
Beta Was this translation helpful? Give feedback.
All reactions