title: Foreach and Mysql in laravel views
body: <p>I have got Laravel to work for doing simple HTML pages, routing worked, as defined at <a href="https://stackoverflow.com/questions/13433683/using-css-in-laravel-views">this question of mine</a> but I am not sure how to get MySQL and PDO working in a view.</p>
  
  <p>I can get 'traditional' Hello world PHP/MySQL queries working in a view, but am not quite sure how to do this with Laravel's framework.</p>
  
  <p>I read through the documentation but couldn't find anything on how to do this - anyone got any ideas?</p>
  
  <p>Currently I have a basic page, but want to get a simple foreach query working, echoing data from this table:</p>
  
  <p><strong>testingdb</strong>
  Tablename: test1</p>
  
  <pre><code>name VARCHAR (255)
  town VARCHAR (255)
  biography TEXT
  </code></pre>
  
  <p>How would I get this to work without using the traditional PHP/MySQL methods that are normally mentioned in tutorials and using pdo instead (source, nettuts, why you should use PDO article)?</p>
  
  <p>Is there something I need to do, create a controller etc?</p>