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

Starting the application

Now that we have the blueprints for the application, let's roll up our sleeves and start writing some code.

Start by opening a new terminal window and launch Homestead:

$ homestead ssh

Navigate to the directory you have mapped to Homestead (by default this is ~/Code):

$ cd ~/Code

Then use Composer to create a new Laravel project, as follows:

$ composer create-project laravel/laravel furbook.com --prefer-dist
$ cd furbook.com

Once Composer finishes downloading Laravel and resolving its dependencies, you will have a directory structure identical to the one presented in the first chapter.

Setting the application namespace

Applications in Laravel are namespaced. By default, this is just App—Laravel's great, but it still can't guess the name of your application! To set it to something more appropriate, we can use the Artisan command:

$ php artisan app:name Furbook

This will update our application's namespace to be Furbook instead.

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