Email testing not showing site logo in Mailtrap inbox - XAMPP (Laravel) - laravel

I'm currently testing email messages on MailTrap, however my logo is not showing up in the email. i have tried these two markups.
<img src="http://mysite.me/mysite/public/logos/website_logo.png" alt="Logo" title="Logo" style="display:block;margin:0;padding:0;" border="0" width="140" height="50">
<img src="public/logos/website_logo.png" alt="Logo" title="Logo" style="display:block;margin:0;padding:0;" border="0" width="140" height="50">
Someone please help me out.

You need to call it this way: <img src="{{ asset('/path/to/image') }}"

Related

not show image from public folder laravel

I created api for getting image from server and show user but when enter url in server shows (Sorry, the page you are looking for could not be found.)
notice: request work in localhost
Try below code :
<img alt="image name" src="{{ url('image/imagename.jpeg') }}" />
Try this to use public_path() function:
<img src="{{ public_path($IMAGE_PATH) }}">

Displaying video file on webpage with laravel

I have a video in the database and also the directory folder. I am trying to display the video on the webpage but I dont see it. Can you help me? heres my code:
<div class="" style="border:1px solid blue;"><video height="300" autoplay controls><source alt="video not playing" src="{{asset ('introvideos/' .Auth::user()->intro_video) }}">
</source>
</video>
</div>

how to change profile picture on yii2 backend advanced

I am using yii2 advanced app . In that we have static profile pic in backend side. how to change that pic dynamically?? just like we change our profile pic in facebook and other social media. can we do this?
backend\views\layouts\left.php
<div class="pull-left image">
<img src="<?= $directoryAsset ?>/img/user2-160x160.jpg" class="img-circle" alt="User Image"/>
</div>
how to change this image dynamically?

How to use google embed pdf viewer in laravel 5.3?

I tried this
<div class="row" style="text-align: center;">
<iframe src="{{ asset('jurnal/' . $journal->file) }}&embedded=true" style="width:90%; height:500px;" frameborder="0"></iframe>
</div>
Shows me error : NotFoundHttpException in RouteCollection.php line 161:
Anyone can help please, thank you
You actually need to link to Google's viewer, not just your file...
<iframe
src="http://docs.google.com/gview?url={{ asset('jurnal/' . $journal->file) }}&embedded=true"
style="width:600px; height:500px;"
frameborder="0">
</iframe>
Also it looks like the link you are returning isn't a good link to the PDF file. If you go to that page in a browser, it shouldn't show you a NotFoundHttpException

How do I play videos in my website?r

The videos I want to play are in my computer. I have read the forums and guides and I only found guides that lets you play videos uploaded in a video hosting site like JW player and Kaltura. Is there a way to play videos coming directly from my computer? For example by using the path of the file not the link of the uploaded file in the video hosting site. Btw I'm making a youtube like website.
This is my view:
<body>
<div id="container">
<h1>Welcome</h1>
<div id="body">
<div id="div2">
<a href='<?php echo base_url()."main/search"; ?>'>Search!</a>
<br>
<a href='<?php echo base_url()."main/upload"; ?>'>Upload!</a>
<?php echo "<br>"; ?>
<a href='<?php echo base_url()."main/myAccount"; ?>'>Edit my Account!</a>
<?php echo "<br>"; ?>
<a href='<?php echo base_url()."main/logout" ?>'>Logout</a>
</div>
<div id ="searchBox">
<video width="320" height="240" controls >
<source src="videos\53e38a25e298a.mp4" type="video/mp4">
<source src="video\videos\53e38a25e298a.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</div>
</div>
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds</p>
</div>
</body>
I'm trying to play a video (specific location for now) from my computer. But it won't play and it just show the player and play button and progress bar.
Update: I'm currently using xampp and codeigniter as the framework.
I tried creating a single webpage placed in my Desktop using the code above and placed the video in my Desktop and it worked. But when I am using codeigniter it does not play. I've tried putting the video clips inside my view folder but still it won't work.
Have a look into HTML5 Video, you can play videos in a similar way to how you would usually add an image from your computer into a website.
http://www.w3schools.com/html/html5_video.asp
I've solved the problem, it seems that the path is indeed incorrect. The correct path is localhost/video/videos/53e38a25e298a.mp4

Resources