title: how to embed video in laravel code
body: <p>I am working on a project in which I store youtube video links in a database and then I retrieve those links and using blade template engine i try to embed them into page. I use a loop to put videos in a page. For some reason I'm not getting any video in the browser. It is covering the mentioned space but not rendering anything. I'm using laravel 3. Here's couple of code snippets, if they help.</p>
  
  <hr>
  
  <p>This is the index.blade.php</p>
  
  <pre><code>@layout('layouts.master')
  
  @section('content')
  
  @foreach ($videos as $video)
      &lt;h4&gt;{{ $video-&gt;title }}&lt;/h4&gt;
      &lt;br&gt;
      &lt;div class="media"&gt;
          &lt;div class="media-body"&gt;
              &lt;iframe width="560" height="315" src="{{ $video-&gt;link }}" frameborder="0" allowfullscreen&gt;
              &lt;/iframe&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;br&gt;
  @endforeach
  
  @endsection
  </code></pre>
  
  <hr>
  
  <p>The $videos variable is passed from controller.</p>
  
  <pre><code>class Videos_Controller extends Base_Controller
  {
  public $restful = true;
  
  public function get_index()
  {
      $videos = DB::table('videos')-&gt;get();
      return View::make('videos.index')
          -&gt;with('title', 'Videos')
          -&gt;with('videos', $videos);
  }
  }
  </code></pre>
  
  <hr>
  
  <p>All i get is a blank page. I don't understand what i'm doing wrong. I'm using twitter bootstrap for css prototyping. Any help will be appreciated.</p>
  
  <p>Here's how master.blade.php's 'head' looks like:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;{{ $title }} &lt;/title&gt;
      &lt;meta name="viewport" content="width=device-width"&gt;
      {{ HTML::style('css/bootstrap.min.css') }}
      {{ HTML::style('css/bootstrap-responsive.min.css') }}
  &lt;/head&gt;
  </code></pre>
  
  <hr>
  
  <p>This is what comes up in firefox when I inspect element.</p>
  
  <pre><code>&lt;div class="media"&gt;
  
  &lt;div class="media-body"&gt;
      &lt;iframe width="560" height="315" frameborder="0" allowfullscreen=""   src="http://www.youtube.com/watch?v=1iBm60uJXvs"&gt;
          #document
              &lt;html&gt;
                  &lt;head&gt;&lt;/head&gt;
                  &lt;body&gt;&lt;/body&gt;
              &lt;/html&gt;
      &lt;/iframe&gt;
  &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>