spatie/laravel-markdown
Render Markdown in Laravel with a Blade x-markdown component or a configurable MarkdownRenderer. Converts content to HTML with heading IDs, links, and syntax-highlighted code blocks, using options from your config and container resolution.
Under the hood this package makes uses of the excellent league/commonmark package.
If you don't want to install and handle all the dependencies of this package yourself, take a look at Torchlight, which can highlight your code with minimal setup.
How can I help you explore Laravel packages today?