SyntaxFix
Write A Post
Hire A Developer
Questions
All of the above are correct, but try this straight one-liner:
{{session()->has('message') ? session()->get('message') : ''}}