Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ShailendraGohil's avatar

laravel certification exam question

I don't know why they are using a star in code. like in code they call event by write "**event(new NewOrderAdded()) **".why they use star? when I try to code like that it gives me a syntax error.

0 likes
3 replies
bugsysha's avatar

Maybe it's theirs templating engine but something didn't get escaped. Search for ** on the instructions page to see what do they mean. But since they are on the both sides of the code, I guess it is markdown way to bold or somehow mark it but someone made a typo or something so it didn't render properly.

ShailendraGohil's avatar

On the instruction page, I didn't find anything like this, and 2-3 questions contain the same code (**). Thanks for the help :)

Snapey's avatar

**something** is markdown for bold text

I can use it here;

something

but if I accidentally put a space between the stars and the text then it is not rendered as bold

**something ** or

** something**

https://www.markdownguide.org/cheat-sheet/

1 like

Please or to participate in this conversation.