How to start with laravel

1. First install composer and show   the php.exe path (ex.C:/xampp/apache/php/php.exe)
2. Then goto laravel folder using cmd
3. Then in the command prompt type:
composer create-project laravel/laravel –prefer-dist
4. It will take 5-10 minutes depending on your internet connection . Installation completed.
5. Let create a crud controller in the command prompt type
6. php artisan make:controller PhotoController
7. Then goto app/http/route then add the following line
    Route::resource(‘photo’, ‘PhotoController’);
Your controller is running
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s