03.12.2015 Views

laravel4cookbook

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Deployment 89<br />

1 <br />

2 <br />

3 <br />

4 <br />

5 Laravel 4—Deployment Tutorial<br />

6 {{ Form::assets("header-css") }}<br />

7 <br />

8 <br />

9 Hello World!<br />

10 {{ Form::assets("footer-js") }}<br />

11 <br />

12 <br />

.<br />

This file should be saved as app/views/hello.blade.php.<br />

Now, depending on the environment we have set; we will either see a list of asset files in each section,<br />

or single (production) asset files.<br />

.<br />

You will notice the difference by changing your environment from local to production. Give the<br />

environment commands a go — this is the kind of thing they were made for!<br />

Combining Assets<br />

The simplest asset operation is combining. This is where we put two or more stylesheets or scripts<br />

together into a single file. Similarly to how we arranged the environment classes; the asset commands<br />

will inherit form a master command:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!