We help IT Professionals succeed at work.
Get Started

How do I display an uploaded image in Laravel dynamically?

Bruce Gust
Bruce Gust asked
Last Modified: 2020-01-25
I'm using TinyMCE with Laravel 6.

I've got an Admin Suite where I'm creating the content for any one of a number of pages. The about page html code looks like this:

<a href="http://new.brucegust.com/nomas/assets/img/punky-150.jpg" target="_blank"><img style="float: left; margin: 10px;" src="http://new.brucegust.com/nomas/assets/img/punky-150.jpg" alt="" /></a>The NOMAS (Neonatal Oral-Motor Assesment Scale) was developed in 1983 by Marjorie Meyer Palmer MA, CCC-SLP and has since become a reliable tool for the evaluation of neonatal sucking patterns in pre-term and term infants. The NOMAS provides a comprehensive description of the infant's feeding patterns and enables the examiner to identify normal oral-motor patterns and to differentiate disorganized from dysfunctional patterns. The NOMAS is used for pre and post-test measurements to determine treatment effectiveness; to record developmental and changing patterns; and to confirm oral-motor dysfunction or disorganization in the poor feeder. It is important to accurately identify the infant's feeding pattern so that appropriate treatment may be prescribed. Performance on the NOMAS is predictive of developmental outcome at 24 months of age.

Open in new window

In my Admin Suite, after I've inserted it into the database, it looks like this:

screenshot of admin page
But when I go to my actual page, whose code looks like this:

<!-- Section: intro -->
<section id="intro" class="intro">
	<div class="satellite-content">
		<div class="container">
			<div class="row">
				<div class="col-xs-12 satellite_row">
					{{ $pages->body }}

Open in new window

I get this:

about page
I don't get the image, I get the actual HTML code.

What do I need to do differently?
Watch Question
Top Expert 2013
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE