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

rushh's avatar
Level 1

Render view of markdown files

Hello there,

I just have not clear idea about , how we can display (view) .md files ? I create new Test.md file into my laravel project directory and I add some content into Test.md file.

I want to display that content into another blade file or we can say like I want to render that content to end-user of my site.

Here is my Test.md file

	---
	title: 5. Help & Questions
	type: index
	weight: 5
	---

	<a name="Common-Problems"></a>
	# Common Problems

	*Here's a list of the common problems you might face, and the possible solutions.*


	<br>
	## I see a blank (white) page instead of the Laravel 'Welcome' page!


	<br>
	## I see "Welcome to nginx" instead of the Laravel App!

How can I display this content to end-user ?

0 likes
5 replies
itsfg's avatar

Some people have used

Illuminate\Mail\Markdown::parse($markdown_content)

to stringify a markdown content. You could try this ?

rushh's avatar
Level 1

I have Test.md file so how can I get that whole file (Content) here into the $markdown_content ?

itsfg's avatar

Something like :

$markdown_content = file_get_content('/path/to/your/markdown/file.md');

Please or to participate in this conversation.