title: Fatal error: Call to undefined function asset() in C:\wamp\www\laravel-master\app\views\hello.php
body: <p>I wanted to learn laravel framework. I could install laravel in my webserver(Wamp) and i get some tutorial to learn it but when i tryed to add style to 'h1' tag in the hello.php file place in this path:("C:\wamp\www\laravel-master\app\views\hello.php") by asset() function, above mentioned error occurred.
  please help me to find out where the problem are.
  here is hello.php codes:</p>
  
  <pre><code>        &lt;style&gt;
  
          body {
              margin:0;
              font-family:'Lato', sans-serif;
              text-align:center;
              color: #999;
          }
  
          .welcome {
              width: 300px;
              height: 200px;
              position: absolute;
              left: 50%;
              top: 50%;
              margin-left: -150px;
              margin-top: -100px;
          }
  
          a, a:visited {
              text-decoration:none;
          }
  
          h1 {
              font-size: 32px;
              margin: 16px 0 0 0;
          }
      &lt;/style&gt;
  &lt;/head&gt;
     &lt;link rel="stylesheet" type="text/css" href="&lt;?php  echo asset('css/main.css'); ?&gt;" &gt;
  &lt;body&gt;
      &lt;div class="welcome"&gt;
          &lt;a href="http://laravel.com" title="Laravel PHP Framework"&gt; &lt;img src="some_long_src" alt="Laravel PHP Framework"&gt;&lt;/a&gt;
          &lt;h1 class="highlight"&gt;You have arrived.&lt;/h1&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and main.css :</p>
  
  <pre><code>.highlight {
      border: solid 2px #F00; 
  }
  </code></pre>
  
  <p>and my laravel version is 4.2.16.</p>
  
  <p>thanks in advance.</p>