Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Laravel 5.x Cookbook

You're reading from  Laravel 5.x Cookbook

Product type Book
Published in Sep 2016
Publisher Packt
ISBN-13 9781786462084
Pages 402 pages
Edition 1st Edition
Languages
Authors (2):
Terry Matula Terry Matula
Profile icon Terry Matula
Alfred Nutile Alfred Nutile
Profile icon Alfred Nutile
View More author details

Table of Contents (17) Chapters

Laravel 5.x Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Setting Up and Installing Laravel 2. Using Composer Packages 3. Routing 4. Building Views and Adding Style 5. Working with Data 6. Adding Angular to Your App 7. Authentication, Security, and Subscriptions 8. Testing and Debugging Your Application 9. Adding Advanced Features to Your App 10. Deploying Your App Index

Using Elixir and Gulp to set up Angular


After all the manual installation work at the start of this chapter, I want to step back and automate this with Elixir. I will use Gulp via Elixir to put my files in place for me and aggregate them as I work on them.

This means I will start to keep my assets in resources/assets" not "public and then aggregate them, as I edit them, to the correct areas.

To be clear, I am, by far, no Gulp expert. The system here just helped me to put in place a decent workflow, filling in some of the blanks I did not see in the Laravel docs.

Getting ready

If you did not follow the start of this chapter, you might not have all the files I am about to move into different places. If not, no big deal; you will still get a sense of how this all works.

How to do it...

  1. Move all CSS files into resources/css" and JavaScript "resources/js so that your folders look like this:

  2. Then, move all the CSS calls out of the layout, so it looks just like this:

  3. Then, I will do the same for the footer...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}