troubleshooting Question

How do I display an uploaded image in Laravel dynamically?

Avatar of Bruce Gust
Bruce GustFlag for United States of America asked on
LaravelPHPWeb Development
6 Comments1 Solution67 ViewsLast Modified:
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.

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:

@extends('layouts.satellite')
@section('content')
<!-- 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 }}
				</div>
			</div>
		</div>
	</div>
</section>
@endsection

I get this:

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

What do I need to do differently?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros