Collections are wrappers around arrays in PHP. Collections provide fluent interfaces and intuitive APIs to access arrays. Laravel comes with coll...
For further actions, you may consider blocking this person and/or reporting abuse
Great :)
Very fluent!! Is this compatible with all Laravel versions?
I think by Laravel, 5.4, this feature got introduced
It's a nice feature, but it makes reading your code slightly harder.
It may seem like a good idea now, but your future self or your teammates may disagree.
I should disagree with you here ;), as a developer when you write multiple nested ternary operators for a complex if conditional, I can understand that it reduces the readability, whereas when you write a ternary instead of a simple if condition in one line, rather I'd appreciate you,
Maybe I just need to get used to it :)