Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Laravel 5 Essentials

You're reading from   Laravel 5 Essentials Explore the fundamentals of Laravel, one of the most expressive and robust PHP frameworks available

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher Packt
ISBN-13 9781785283017
Length 144 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Martin Bean Martin Bean
Author Profile Icon Martin Bean
Martin Bean
Arrow right icon
View More author details
Toc

Creating a new Laravel application

With Homestead set up, you now have a development environment to build Laravel applications that can easily be removed at a later date without disturbing your machine. You must be itching to get started with Laravel, so here we go!

In the next chapter, we will go through building a simple application in Laravel from start to finish. So now, we will prepare this project in Homestead:

  1. First, check whether Homestead is running by using the following command:
    > $ homestead status
    
  2. If the status is anything other than running, bring it up with the homestead reload command. We now need to add our site. It will be a browsable database of cat profiles, so let's call it "Furbook" and give it the fictional domain name of furbook.com.
  3. We can set this up in Homestead by editing the configuration file and adding the following mappings:
    sites:
        - map: dev.furbook.com
          to: /home/vagrant/Code/furbook.com/public
    databases:
        - furbook
  4. Run $ homestead...
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 $19.99/month. Cancel anytime
Banner background image