Birmingham mumbai


Download 1.3 Mb.
Pdf ko'rish
bet54/68
Sana05.01.2022
Hajmi1.3 Mb.
#227543
1   ...   50   51   52   53   54   55   56   57   ...   68
Bog'liq
Laravel 5 Essentials

Starting the application

Now that we have the blueprints for the application, let's roll up our sleeves and 

start writing some code.




Your First Application

[

 26 

]

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:




Download 1.3 Mb.

Do'stlaringiz bilan baham:
1   ...   50   51   52   53   54   55   56   57   ...   68




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling