What is Laravel?
Laravel is a powerful MVC PHP framework, designed for developers who need a simple and elegant toolkit to create full-featured web applications. Laravel was created by Taylor Otwell.
Laravel is a MVC framework with bundles, migrations, and Artisan CLI. Laravel offers a robust set of tools and an application architecture that incorporates many of the best features of frameworks like CodeIgniter, Yii, ASP.NET MVC, Ruby on Rails, Sinatra, and others.
Laravel is an Open Source framework. It has a very rich set of features which will boost the speed of Web Development. If you familiar with Core PHP and Advanced PHP, Laravel will make your task easier. It will save a lot time if you are planning to develop a website from scratch. Not only that, the website built in Laravel is also secure. It prevents the various attacks that can take place on websites.
Installing Laravel (Windows)
1) First step is to install composer in your system. If composer is not present download it from https://getcomposer.org/download/
2) After Composer Installtion, open command prompt & type composer & press enter.
3) We are working on MYsql database . So for that I am expecting your system has wamp server installed & settedup.So For easy development I will explain you steps one by one as i did.
4) In the wamp/www directory, Create a folder as your wish.
5)In Command prompt navigate to that folder and then run command like this:-
composer create-project laravel/laravel
6) So you its will run in terminal & automatically larvel project is generated in laravel folder inside the directory you created.
7)Now Run this command
php artisan serve
8) Now the terminal will tell you like your production is started at http://localhost:8000/
9) Navigate to that URL through browser.
10) You will get like this :- as shown in below image. Congrtazz your Laravel has been Installed..
Installing Laravel in (Linux)
1) Open Terminal & Run command like
sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
2) This will Install composer in the system.
3) Now run this command in terminal
sudo mv composer.phar /usr/local/bin/composer
4)Then to check composer is working or not.. just type composer in terminal.It will show composer commands. So that's working.
5) Then create a folder with anyname eg: laravelworks anywhere in you system . then go to that folder from terminal by using cd command .
6) Inside that folder from terminal give a command like this .
composer create-project laravel/laravel your-project-name
7)Next thing we need to do is give permissions to some folders .
i) storage directory
ii) bootstrap/cache
8) you can do that in any way as you like ... i did like this .
first go inside –prefer-dist using cd command
sudo chmod 777 -R ./storage
sudo chmod 777 -R ./bootstrap/cache
9)After that we need to start a laravel server using following command
php artisan serve
10) Now the terminal will tell you like your production is started at http://localhost:8000/.
Congrtazz your Laravel has been Installed..
Laravel is a powerful MVC PHP framework, designed for developers who need a simple and elegant toolkit to create full-featured web applications. Laravel was created by Taylor Otwell.
Laravel is a MVC framework with bundles, migrations, and Artisan CLI. Laravel offers a robust set of tools and an application architecture that incorporates many of the best features of frameworks like CodeIgniter, Yii, ASP.NET MVC, Ruby on Rails, Sinatra, and others.
Laravel is an Open Source framework. It has a very rich set of features which will boost the speed of Web Development. If you familiar with Core PHP and Advanced PHP, Laravel will make your task easier. It will save a lot time if you are planning to develop a website from scratch. Not only that, the website built in Laravel is also secure. It prevents the various attacks that can take place on websites.
Installing Laravel (Windows)
1) First step is to install composer in your system. If composer is not present download it from https://getcomposer.org/download/
2) After Composer Installtion, open command prompt & type composer & press enter.
3) We are working on MYsql database . So for that I am expecting your system has wamp server installed & settedup.So For easy development I will explain you steps one by one as i did.
4) In the wamp/www directory, Create a folder as your wish.
5)In Command prompt navigate to that folder and then run command like this:-
composer create-project laravel/laravel
6) So you its will run in terminal & automatically larvel project is generated in laravel folder inside the directory you created.
7)Now Run this command
php artisan serve
8) Now the terminal will tell you like your production is started at http://localhost:8000/
9) Navigate to that URL through browser.
10) You will get like this :- as shown in below image. Congrtazz your Laravel has been Installed..
Installing Laravel in (Linux)
1) Open Terminal & Run command like
sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php
2) This will Install composer in the system.
3) Now run this command in terminal
sudo mv composer.phar /usr/local/bin/composer
4)Then to check composer is working or not.. just type composer in terminal.It will show composer commands. So that's working.
5) Then create a folder with anyname eg: laravelworks anywhere in you system . then go to that folder from terminal by using cd command .
6) Inside that folder from terminal give a command like this .
composer create-project laravel/laravel your-project-name
7)Next thing we need to do is give permissions to some folders .
i) storage directory
ii) bootstrap/cache
8) you can do that in any way as you like ... i did like this .
first go inside –prefer-dist using cd command
sudo chmod 777 -R ./storage
sudo chmod 777 -R ./bootstrap/cache
9)After that we need to start a laravel server using following command
php artisan serve
10) Now the terminal will tell you like your production is started at http://localhost:8000/.
Congrtazz your Laravel has been Installed..
I hope you would be doing well. Dear admin your site is really easy to understand and one of the best in the town. I had gone through your site and I can confidently say that your site is free of bugs. Therefore, everyone should use this website. However, we also provide website development tools. Here is the link of our site jsononline
ReplyDeleteCheers! Every body. I am a developer; I am always anticipating making people aware of web development tools. I have come across a number of web development sites. However, your website is exceptional than the others. The content, tools and easiness of using your website is just amazing. I can be helpful by introducing you to range of Json tools. Here is the link to my site jsononline
ReplyDelete