title: Laravel Blade directive to properly attach to template a CSS style from 'public' folder
body: <p>i'm a laravel newbie, and i'm trying to import a css file into my blade template in the views folder.</p>
  
  <p>I have this in the routes file:</p>
  
  <pre><code>Route::get('/', function()
  {
  return View::make('index');
  });
  </code></pre>
  
  <p>index.blade.php in the 'views' folder has the following code in the header section:</p>
  
  <pre><code>{{HTML::style('css/common.css');}}
  &lt;/head&gt;
  </code></pre>
  
  <p>common.css is a file in public folder, inside a css subfolder.</p>
  
  <p>The index.blade.php view runs without errors, showing up all the html elements, but without the css. What am i missing here? Any help would be much appreciated.</p>
  
  <p>Edit: It looks like the problem has to do with some .htaccess or xampp configuration.
  The href generated in the page shows              [http://localhost/testLaravel/server.php/css/common.css], and that is why it doesn't get the css code. The correct path would be [http://localhost/testLaravel/public/css/common.css].</p>
  
  <p>mod_rewrite is on and my .htacess file is:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  &lt;IfModule mod_negotiation.c&gt;
      Options -MultiViews
  &lt;/IfModule&gt;
  
  RewriteEngine On
  
  # Redirect Trailing Slashes...
  RewriteRule ^(.*)/$ /$1 [L,R=301]
  
  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Any help getting rid of the server.php portion of the path would be much appretiated.</p>