Introduction to Laravel

Laravel is one of the most popular PHP Framework now.
It’s only because of it’s simplicity security and Model View Controller Architecture.
So let’s get started 
As you know every programming language starting with “Hello World !”

Before get starting I will give you some hack tips about the Laravel

  1. Laravel is Opensource Project
  2. Model View Controller Architecture
  3. Database migration features
  4. Artisan Command line tool
  5. Eloquent ORM

While going through this tutorial you will get exact idea about all of these features to make your programming simple with Laravel
 

Laravel Installation

Composer

After you’ve downloaded and installed Xampp, we need to install Composer.
Composer is a PHP package manager that is integrated with Laravel Framework. In Windows we can install it easy going to the official page and download the installer.
Composer Download page
After install it, we can open a Windows terminal and write composer for execute the command:

Requirements

  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension

 

Laravel Hello World Example

Laravel Hello World
After the above step, open CMD and hit the composer –version. You should receive the  Composer version information. That’s it! The setup was successful.
After composer installation, Write following command in command line.
composer global require “laravel/installer=~1.1”
After above installation, create a directory in apache24 or xamp directory, then go to command line and set your created directory.
Then write the following command into a command line.
composer create–project anvar
where, anvar is the name of the project.
Now, create your first application.
Create a controller in /app/Http/Controllers/anvar.php  and write following code in it.



Laravel


AlphansoTech Step By Step Laravel Guide



Replace code in app/Http/route.php
Route::get(‘/alphansotech’, function () {
    return view(‘alphansotech’);
});
I hope you will find this post very useful regarding Laravel beginner guide . Let me know any questions if you have in comment regarding Laravel. I will reply you ASAP.