Laravel 5 Vue Js Tutorial : Install Vue.Js and Getting Strat to using VueJs in Laravel 5 Project. This lesson will show you how to integration framework javascript vue.js and our laravel 5 project. From vue.js installation, and simple function can be used in Laravel project.
How to Install Vue.js in laravel 5?
Vue does not support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8. However it supports all ECMAScript 5 compliant browsers.
NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as Webpack or Browserify. Vue also provides accompanying tools for authoring Single File Components.
# latest stable
$ npm install vue
CLI Method
Vue.js provides an official CLI for quickly scaffolding ambitious Single Page Applications. It provides batteries-included build setups for a modern frontend workflow. It takes only a few minutes to get up and running with hot-reload, lint-on-save, and production-ready builds :
# install vue-cli
$ npm install --global vue-cli
# create a new project using the "webpack" template
$ vue init webpack my-project
# install dependencies and go!
$ cd my-project
$ npm install
$ npm run dev
Dev Build
Important: the built files in GitHub's /dist folder are only checked-in during releases. To use Vue from the latest source code on GitHub, you will have to build it yourself!
git clone https://github.com/vuejs/vue.git node_modules/vue
cd node_modules/vue
npm install
npm run build
Bower
# latest stable
$ bower install vue
AMD Module Loaders
The standalone downloads or versions installed via Bower are wrapped with UMD so they can be used directly as an AMD module.
Laravel 5 Vue Js Tutorial : Install Vue.Js and Getting Strat to using VueJs in Laravel 5 Project. This lesson will show you how to integration framework javascript vue.js and our laravel 5 project. From vue.js installation, and simple function can be used in Laravel project.
How to Install Vue.js in laravel 5?
Vue does not support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8. However it supports all ECMAScript 5 compliant browsers.
NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as Webpack or Browserify. Vue also provides accompanying tools for authoring Single File Components.
# latest stable
$ npm install vue
CLI Method
Vue.js provides an official CLI for quickly scaffolding ambitious Single Page Applications. It provides batteries-included build setups for a modern frontend workflow. It takes only a few minutes to get up and running with hot-reload, lint-on-save, and production-ready builds :
# install vue-cli
$ npm install --global vue-cli
# create a new project using the "webpack" template
$ vue init webpack my-project
# install dependencies and go!
$ cd my-project
$ npm install
$ npm run dev
Dev Build
Important: the built files in GitHub's /dist folder are only checked-in during releases. To use Vue from the latest source code on GitHub, you will have to build it yourself!
git clone https://github.com/vuejs/vue.git node_modules/vue
cd node_modules/vue
npm install
npm run build
Bower
# latest stable
$ bower install vue
AMD Module Loaders
The standalone downloads or versions installed via Bower are wrapped with UMD so they can be used directly as an AMD module.
Laravel 5.3 tutorial for beginners - This is New lessons about Laravel 5.3 tutorial that is how er can sending the activation or confirmation email to the new users email address after they're register in our laravel applications.
This project can be installed via Composer. To get the latest version of Laravel User Verification, add the following line to the require block of your composer.json file:
Next, You'll then need to run composer install or composer update to download the package and have the autoloader updated.
Other method to install "jrean" packages, following this command
composer require jrean/laravel-user-verification
Add the Service Provider & Facade/Alias
Once Larvel User Verification is installed, you need to register the service provider in config/app.php. Make sure to add the following line above the RouteServiceProvider.
before we add more "jrean" function, we nedd to create authentication to our project, create it following by this command :
php artisan make:auth
Create New Migration
The table representing the user must be updated with two new columns, verified and verification_token. This update will be performed by the migrations included with this package.
It is mandatory that the two columns are on the same table where the user's e-mail is stored. Please make sure you do not already have those fields on your user table.
To run the migrations from this package use the following command :
Overwrite and customize the redirect attributes/properties paths available within the RedirectsUsers trait included by the VerifiesUsers trait. (not mandatory)
Overwrite the contructor (not mandatory)
Overwrite the register() method (mandatory)
<?php
namespace AppHttpControllersAuth;
use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\Registers\Users;
use Illuminate\Http\Request;
use Jrean\UserVerification\Traits\VerifiesUsers;
use Jrean\UserVerification\Facades\UserVerification;
class RegisterController extends Controller
{
/*
|--------------------------------------------------------------------------
| Register Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/
use RegistersUsers;
use VerifiesUsers;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
// Based on the workflow you need, you may update and customize the following lines.
$this->middleware('guest', ['except' => ['getVerification', 'getVerificationError']]);
}
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return IlluminateContractsValidationValidator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
]);
}
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return User
*/
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
}
/**
* Handle a registration request for the application.
*
* @param IlluminateHttpRequest $request
* @return IlluminateHttpResponse
*/
public function register(Request $request)
{
$this->validator($request->all())->validate();
$user = $this->create($request->all());
$this->guard()->login($user);
UserVerification::generate($user);
UserVerification::send($user, 'My Custom E-mail Subject');
return redirect($this->redirectPath());
}
}
Video Tutorial Sending an email verification after registering new user in Laravel 5.3
Laravel 5.3 tutorial for beginners - This is New lessons about Laravel 5.3 tutorial that is how er can sending the activation or confirmation email to the new users email address after they're register in our laravel applications.
This project can be installed via Composer. To get the latest version of Laravel User Verification, add the following line to the require block of your composer.json file:
Next, You'll then need to run composer install or composer update to download the package and have the autoloader updated.
Other method to install "jrean" packages, following this command
composer require jrean/laravel-user-verification
Add the Service Provider & Facade/Alias
Once Larvel User Verification is installed, you need to register the service provider in config/app.php. Make sure to add the following line above the RouteServiceProvider.
before we add more "jrean" function, we nedd to create authentication to our project, create it following by this command :
php artisan make:auth
Create New Migration
The table representing the user must be updated with two new columns, verified and verification_token. This update will be performed by the migrations included with this package.
It is mandatory that the two columns are on the same table where the user's e-mail is stored. Please make sure you do not already have those fields on your user table.
To run the migrations from this package use the following command :
Overwrite and customize the redirect attributes/properties paths available within the RedirectsUsers trait included by the VerifiesUsers trait. (not mandatory)
Overwrite the contructor (not mandatory)
Overwrite the register() method (mandatory)
<?php
namespace AppHttpControllersAuth;
use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\Registers\Users;
use Illuminate\Http\Request;
use Jrean\UserVerification\Traits\VerifiesUsers;
use Jrean\UserVerification\Facades\UserVerification;
class RegisterController extends Controller
{
/*
|--------------------------------------------------------------------------
| Register Controller
|--------------------------------------------------------------------------
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/
use RegistersUsers;
use VerifiesUsers;
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
// Based on the workflow you need, you may update and customize the following lines.
$this->middleware('guest', ['except' => ['getVerification', 'getVerificationError']]);
}
/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return IlluminateContractsValidationValidator
*/
protected function validator(array $data)
{
return Validator::make($data, [
'name' => 'required|max:255',
'email' => 'required|email|max:255|unique:users',
'password' => 'required|min:6|confirmed',
]);
}
/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return User
*/
protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),
]);
}
/**
* Handle a registration request for the application.
*
* @param IlluminateHttpRequest $request
* @return IlluminateHttpResponse
*/
public function register(Request $request)
{
$this->validator($request->all())->validate();
$user = $this->create($request->all());
$this->guard()->login($user);
UserVerification::generate($user);
UserVerification::send($user, 'My Custom E-mail Subject');
return redirect($this->redirectPath());
}
}
Video Tutorial Sending an email verification after registering new user in Laravel 5.3
Microsoft .Net tutorials - Yesterday, i have some problem with my .Net Framework. I have working in Windows 10 professional, after i run one simple aplication, that Application crashes with error : Microsoft .NET Framework Error : Unhandled exception has occurred in your application.
How to Fix Microsoft .NET Framework Error?
Microsoft .NET Framework component should be installed or repaired.
Symptoms
When I start any application inside the virtual machine (Windows), I receive an error: "Microsoft .NET Framework Error: Unhandled exception has occurred in your application."
Cause
This error message can be received if the Microsoft .NET Framework component is not installed on your computer, outdated or if it is damaged.
Resolution
Microsoft .NET Framework component should be installed or repaired.
To install or repair Microsoft .NET Framework please do the following:
Close all open applications.
Click the Windows Start button and choose Control Panel.
Double-click Program and Features > Uninstall a program.
Search the list of currently installed programs for Microsoft .NET Framework
Select Microsoft .NET Framework, and then click Change/Remove.
Select Repair, and then click Next.
When prompted, restart your computer.
NOTE : If the error persists after installing or repairing, there may be other damaged components to the Microsoft .NET Framework. Uninstalling and then reinstalling Microsoft .NET Framework using the steps in Repairing or reinstalling Microsoft .NET Framework may resolve the issue.
If this solution does not resolve the issue, please contact Microsoft Technical Support regarding the issue.
Microsoft .Net tutorials - Yesterday, i have some problem with my .Net Framework. I have working in Windows 10 professional, after i run one simple aplication, that Application crashes with error : Microsoft .NET Framework Error : Unhandled exception has occurred in your application.
How to Fix Microsoft .NET Framework Error?
Microsoft .NET Framework component should be installed or repaired.
Symptoms
When I start any application inside the virtual machine (Windows), I receive an error: "Microsoft .NET Framework Error: Unhandled exception has occurred in your application."
Cause
This error message can be received if the Microsoft .NET Framework component is not installed on your computer, outdated or if it is damaged.
Resolution
Microsoft .NET Framework component should be installed or repaired.
To install or repair Microsoft .NET Framework please do the following:
Close all open applications.
Click the Windows Start button and choose Control Panel.
Double-click Program and Features > Uninstall a program.
Search the list of currently installed programs for Microsoft .NET Framework
Select Microsoft .NET Framework, and then click Change/Remove.
Select Repair, and then click Next.
When prompted, restart your computer.
NOTE : If the error persists after installing or repairing, there may be other damaged components to the Microsoft .NET Framework. Uninstalling and then reinstalling Microsoft .NET Framework using the steps in Repairing or reinstalling Microsoft .NET Framework may resolve the issue.
If this solution does not resolve the issue, please contact Microsoft Technical Support regarding the issue.
How to create simple Geo Chart using Lavacharts in Laravel 5.3?
First, you must have a database, i'm using MySQL database, just create "lavachart" database using MySQL.
Create Simple Geo Chart Project
cd c:\server\htdocs
....
composer create-project --prefer-dist laravel/laravel lavacharts
in Migration files, add this function to create charts table
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('charts', function (Blueprint $table) {
$table->increments('id');
$table->string('country');
$table->integer('users');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('charts');
}
}
Create Models
php artisan make:model Charts
Add this function to "Charts" model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Charts extends Model
{
protected $table ='charts';
public $fillable = ['country','users'];
}
Next, we will add Lavacharts into project,
Installing Lavacharts
First, copy this line into your project's composer.json file, in the "require": {} section,
"khill/lavacharts" : "3.0.*"
Next, run composer to download and install.
composer update
Register the service provider
Register the service provider by adding this line to the providers array in config/app.php
Next, add this function into our controller (ChartsController.php)
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Charts;
use Khill\Lavacharts\Lavacharts;
class ChartsController extends Controller
{
public function chart(){
$lava = new Lavacharts;
$popularity = $lava->DataTable();
$data=Charts::select("country as 0","users as 1")->get()->toArray();
$popularity->addStringColumn('Country')
->addNumberColumn('Users')
->addRows($data);
$lava->GeoChart('Popularity',$popularity);
return view('charts.chart',['lava' => $lava]);
}
}
How to create simple Geo Chart using Lavacharts in Laravel 5.3?
First, you must have a database, i'm using MySQL database, just create "lavachart" database using MySQL.
Create Simple Geo Chart Project
cd c:\server\htdocs
....
composer create-project --prefer-dist laravel/laravel lavacharts
in Migration files, add this function to create charts table
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('charts', function (Blueprint $table) {
$table->increments('id');
$table->string('country');
$table->integer('users');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('charts');
}
}
Create Models
php artisan make:model Charts
Add this function to "Charts" model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Charts extends Model
{
protected $table ='charts';
public $fillable = ['country','users'];
}
Next, we will add Lavacharts into project,
Installing Lavacharts
First, copy this line into your project's composer.json file, in the "require": {} section,
"khill/lavacharts" : "3.0.*"
Next, run composer to download and install.
composer update
Register the service provider
Register the service provider by adding this line to the providers array in config/app.php
Next, add this function into our controller (ChartsController.php)
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Charts;
use Khill\Lavacharts\Lavacharts;
class ChartsController extends Controller
{
public function chart(){
$lava = new Lavacharts;
$popularity = $lava->DataTable();
$data=Charts::select("country as 0","users as 1")->get()->toArray();
$popularity->addStringColumn('Country')
->addNumberColumn('Users')
->addRows($data);
$lava->GeoChart('Popularity',$popularity);
return view('charts.chart',['lava' => $lava]);
}
}
Visual studio 2015 tutorial - when i want to open or create new project using visual studio 2010, or VS 2012, Vs 2013 and Vs 2015 express, professional and Enterprise, i got the meessage "No exports were found that match the constraint contract name". How can I fix this problem?
we can deleting the Component Model Cache. or installing an extension to VS 2012 Express. Tools > Extensions and Updates > Online > Choose any then download. This apparently invalidates the cache causing VS to rebuild it.
but, sometimes, we will can't to open our visual studio, ho to fix it?
Deleting Component Model Cache
Visual Studio Pro / Enterprise
This issue can be resolved by deleting or clearing all the folders and files from this folder
Visual studio 2015 tutorial - when i want to open or create new project using visual studio 2010, or VS 2012, Vs 2013 and Vs 2015 express, professional and Enterprise, i got the meessage "No exports were found that match the constraint contract name". How can I fix this problem?
we can deleting the Component Model Cache. or installing an extension to VS 2012 Express. Tools > Extensions and Updates > Online > Choose any then download. This apparently invalidates the cache causing VS to rebuild it.
but, sometimes, we will can't to open our visual studio, ho to fix it?
Deleting Component Model Cache
Visual Studio Pro / Enterprise
This issue can be resolved by deleting or clearing all the folders and files from this folder
Laravel 5 tutorial - Laravel released v5.3.19 which includes a few small changes and improvements as well as a complete rewrite of the middleware sorting so that middleware calls with parameters now work properly.
Laravel 5.3.19 make:model
A new addition to Laravel is the ability to specify the creation of a resourceful controller when you are creating a new Model through Artisan, see how to make model in laravel 5.3. This means you can pass a -c or --controller flag to make:model :
php artisan make:model Post --controller
Laravel Image Dimensions Validation
New in Laravel v5.3 is the ability to validate image files to ensure they meet certain dimensions and through the validator this can be setup with a string format:
// Previous
in:php,laravel,...
// New
Rule::in(['php','laravel'])
Then the same for not_in
// Previous
not_in:php,laravel,...
// New
Rule::notIn(['php', 'laravel'])
Either style is valid and the new object-based style parses down into the old way. So you are free to use whichever suits your app.
After Validation Hook
Now your controllers can have a new withValidator method so you can easily call any hooks after validation:
protected function withValidator($validator)
{
$validator->after(function($validator) {
if ($this->somethingElseIsInvalid()) {
$validator->errors()->add('field', 'Something is wrong with this field!');
}
});
}
Previously you had to manually setup the $validator = Validator::make() before you could use an after hook which meant you lost the ability to utilize the ValidatesRequests trait.
Upgrading Laravel
To get this latest version all you need to do is run composer update and you can find a complete list of changes in the changelog.
Laravel 5 tutorial - Laravel released v5.3.19 which includes a few small changes and improvements as well as a complete rewrite of the middleware sorting so that middleware calls with parameters now work properly.
Laravel 5.3.19 make:model
A new addition to Laravel is the ability to specify the creation of a resourceful controller when you are creating a new Model through Artisan, see how to make model in laravel 5.3. This means you can pass a -c or --controller flag to make:model :
php artisan make:model Post --controller
Laravel Image Dimensions Validation
New in Laravel v5.3 is the ability to validate image files to ensure they meet certain dimensions and through the validator this can be setup with a string format:
// Previous
in:php,laravel,...
// New
Rule::in(['php','laravel'])
Then the same for not_in
// Previous
not_in:php,laravel,...
// New
Rule::notIn(['php', 'laravel'])
Either style is valid and the new object-based style parses down into the old way. So you are free to use whichever suits your app.
After Validation Hook
Now your controllers can have a new withValidator method so you can easily call any hooks after validation:
protected function withValidator($validator)
{
$validator->after(function($validator) {
if ($this->somethingElseIsInvalid()) {
$validator->errors()->add('field', 'Something is wrong with this field!');
}
});
}
Previously you had to manually setup the $validator = Validator::make() before you could use an after hook which meant you lost the ability to utilize the ValidatesRequests trait.
Upgrading Laravel
To get this latest version all you need to do is run composer update and you can find a complete list of changes in the changelog.
Laravel 5.3 tutorials - How to create simple CRUD example operations in Laravel 5.3 using Ajax and Modals? this lesson will show you how to perform CRUD operations using ajax in laravel 5.
using Artisan Command, we will create new Migration.
php artisan make:migration create_blog_post_table
In your migration file, that stored on database\migrations\2016_10_18_215831_create_blog_post_table.php
public function up()
{
Schema::create('blog_post', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('description');
$table->timestamps();
});
}
Create Models
using Artisan command, we need to create new model, and named it with "Blog", that will stored on App\Blog.php
php artisan make:model Blog
Blog.php Model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Blog extends Model
{
protected $table ='blog_post';
}
Create Views.
Under views folder, we will create new file (app.blade.php), that used for our template master and Ajax CRUD operations.
Next, we will create new folder named with "blog" folder that stored under views folder resources\views\blog, Next, please create new page that using for CRUD operations page and named it with "index.blade.php"
using Artisan command, we will create new controller.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Blog;
use Validator;
use Response;
use Illuminate\Support\Facades\Input;
class BlogController extends Controller
{
public function index(){
// we need to show all data from "blog" table
$blogs = Blog::all();
// show data to our view
return view('blog.index',['blogs' => $blogs]);
}
// edit data function
public function editItem(Request $req) {
$blog = Blog::find ($req->id);
$blog->title = $req->title;
$blog->description = $req->description;
$blog->save();
return response()->json($blog);
}
// add data into database
public function addItem(Request $req) {
$rules = array(
'title' => 'required',
'description' => 'required'
);
// for Validator
$validator = Validator::make ( Input::all (), $rules );
if ($validator->fails())
return Response::json(array('errors' => $validator->getMessageBag()->toArray()));
else {
$blog = new Blog();
$blog->title = $req->title;
$blog->description = $req->description;
$blog->save();
return response()->json($blog);
}
}
// delete item
public function deleteItem(Request $req) {
Blog::find($req->id)->delete();
return response()->json();
}
}
Laravel 5.3 tutorials - How to create simple CRUD example operations in Laravel 5.3 using Ajax and Modals? this lesson will show you how to perform CRUD operations using ajax in laravel 5.
using Artisan Command, we will create new Migration.
php artisan make:migration create_blog_post_table
In your migration file, that stored on database\migrations\2016_10_18_215831_create_blog_post_table.php
public function up()
{
Schema::create('blog_post', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->string('description');
$table->timestamps();
});
}
Create Models
using Artisan command, we need to create new model, and named it with "Blog", that will stored on App\Blog.php
php artisan make:model Blog
Blog.php Model
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Blog extends Model
{
protected $table ='blog_post';
}
Create Views.
Under views folder, we will create new file (app.blade.php), that used for our template master and Ajax CRUD operations.
Next, we will create new folder named with "blog" folder that stored under views folder resources\views\blog, Next, please create new page that using for CRUD operations page and named it with "index.blade.php"
using Artisan command, we will create new controller.
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Blog;
use Validator;
use Response;
use Illuminate\Support\Facades\Input;
class BlogController extends Controller
{
public function index(){
// we need to show all data from "blog" table
$blogs = Blog::all();
// show data to our view
return view('blog.index',['blogs' => $blogs]);
}
// edit data function
public function editItem(Request $req) {
$blog = Blog::find ($req->id);
$blog->title = $req->title;
$blog->description = $req->description;
$blog->save();
return response()->json($blog);
}
// add data into database
public function addItem(Request $req) {
$rules = array(
'title' => 'required',
'description' => 'required'
);
// for Validator
$validator = Validator::make ( Input::all (), $rules );
if ($validator->fails())
return Response::json(array('errors' => $validator->getMessageBag()->toArray()));
else {
$blog = new Blog();
$blog->title = $req->title;
$blog->description = $req->description;
$blog->save();
return response()->json($blog);
}
}
// delete item
public function deleteItem(Request $req) {
Blog::find($req->id)->delete();
return response()->json();
}
}
Laravel 5 Tutorial - This Lessons will show you how to install Laravel 5.3 on windows using Microsoft Internet Information Services (IIS) Manager. We will enable Microsoft Internet Information Services (IIS) on windows 10, and install PHP 7 for IIS.
After installed laravel, for next lessons we will try configuration to connect to a SQLite database.
Installing Laravel 5.3 on Windows with IIS
In windows 10, IIS (Internet Information Services) needs to be installed, One way to do this is by selecting the start button and type Windows Features to bring up a list where "Turn Windows features on or off" can be selected.
Another way to get to this Control Panel app is Windows + R key combination and run "appwiz.cpl". Turn Windows features on or off link should be in the upper left panel.
Open your Command Prompt (CMD) with "Open as Administrator". One way to do this is by selecting the start button and type command to bring up a list where "Command Prompt" can be selected. Right click on Command Prompt and select Run as administrator.
cd c:/intepub
......
composer create-project laravel/laravel laravel "5.3.*"
To install Laravel on windows with Xampp PHP server, go to this link.
IIS Manager Configurations
Open Internet Information Services (IIS) Manager. Right click on the Server and select Add Website. Fill out the form as follows :
Site name : Laravel in IIS
Application pool : DefaultAppPool
Physical path: C:\inetpub\laravel
Host name : laravel.win
Select "Test Settings" and then "OK" if successful.
Hosts Mapping
Since the Host name laravel.win was entered for the website, the hosts file needs to be updated. Open Notepad as an administrator. One way to do this is by selecting the start button and type Notepad to bring up a list where it can be selected. Right click on Notepad and select Run as administrator.
Select File | Open, or Ctrl + O and change the File type from Text Documents (*.txt) to All Files (*.*). Browse to C:\Windows\System32\drivers\etc and select the hosts file. Add an entry to map localhost to laravel.win as follows.
127.0.0.1 localhost
127.0.0.1 laravel.win
Laravel Project Permissions
Go to IIS Manager, Click on website "Laravel with IIS", right click on Edit Permissions. Under the Security tab, grant full control of the storage folder to Users as shown in the figure below.
Laravel web.config
Since IIS does not have an .htaccess file like Apache, create a web.config file in C:\inetpub\laravel\public as follows.