Getting started Laravel in Windows using xampp
Four simple steps to install laravel on windows machine:
Windows Installation Method 1
1 After installing xampp, just download composer from https://getcomposer.org/download/ and install it.
2 goto path C:/xampp/htdocs and create a folder as laravel, redirect to laravel using cmd prompt as
cd c:xampphtdocslaravel.
3 then simply type this command to create a first project
composer create-project laravel/laravel my_project "5.0.*" --prefer-dist Replace first-project with your project name (it takes a few minutes to install)
4 then redirect to localhost/laravel/first-project/public/ and now you can see the Laravel logo along with a quick message saying “You have arrived.” ( always use a public folder to access project )
Windows Installation Method 2
Few steps to install for Windows Xampp,
1 Download Composer here http://getcomposer.org/
2 Download master copy here https://github.com/laravel/laravel/archive/master.zip
3 Paste the master in xampp/htdocs/your-project-name/[paste the master copy of laravel here]
4 Go to Command prompt : Start Menu -> Run -> Type cmd or command or Window Key + R and type cmd or command.
5 Go the path xampp/htdocs/your-project-name/ in command prompt and type
composer install.
It will automatically download the necessary files.
Other necessary commands
1 c:xampp..htdocslaravelproject>php artisan serve// to run virtual host at localhost:8000
2 c:xampp..htdocslaravelproject>php artisan make:controller CustomerController // to create laraval controller name CustormerController
3 c:xampp..htdocslaravelproject>php artisan // to get artisan command help
4 php artisan migrate // to create database migrate tool
Comments 0