Monday, December 24, 2018

Configure Laravel 5.7 for beginners

Hello guys... Today you wish to be a PHP web developer you must know about the PHP frameworks as a essential requirement. Mostly today developers (web) use Laravel PHP framework for web development. So here I write this blog those who are interested to learn about framework and mainly, those how are try to start  work with Laravel framework. Ok. Let's roll....


Laravel is the most use PHP framework these days. We are going to configure laravel first. There are several ways to do that and here we going to do it using composer and configure it into xampp. Befor that you need to set you computer to install laravel and you need to install xampp and composer to your computer.

You can install composer fire up to this link : install-composer
You can install xampp fire up to this link : install-xampp (remember to install php 7 version)

After you install composer, you can use command prompt and use the 'composer' command and check whether the composer install correctly or not. If correctly install you can see a window like this.











Now what. Ammm...Ok. Now create a new folder with any name you wish in htdocs folder inside the xampp folder. (Default xampp folder is in drive c). I create a folder 'MyFirstPro'. OK. then open command prompt. Point out to the folder that you newly created.
Open the command prompt. type 'cd\'. Then type 'cd\xampp\htdocs\MyFirstPro'. Ok then you are inside the newly created folder.








Now we are going to install laravel project to the folder using composer. For it type 'composer create-project --prefer-dist laravel/laravel blogs' in command prompt. (It takes some time to install. In the command there is a name call blogs. That is the project name that create. You can change the name for any project name as you like.)

Installing some packages and plugins laravel is installing. 👍


After successfully install move to the folder that we are created. In there you can see the newly install laravel project folder structure.


















Now you can check the project was install correctly.
First open command prompt. Go to our project. For it type, 'cd\xampp\htdocs\MyFirstPro\blogs'. Then type the command 'php/artisan/serve'. (artisan is the command line interface for laravel. There are several commands with artisan for develop the project. If you need to see it type 'php/artisan' in command line.) 








Then open xampp. Now open a web browser and fired up the command 'localhost:8000' in address bar. Bingo..If it is install correctly web browser shows the welcome page in laravel.













OK..finally we install the Laravel Framework project. Now we can develop it according to our requirements. Thank you for joining my blog. Hope it will help for you and you will enjoy it. Thank you. Waiting for you comments also. 😊

No comments:

Post a Comment

Create simple CRUD using Laravel 5.7 (Part 4 - Modify Controller, Model and Create route)

Hey guys...Welcome back. Today we are going to create controller and modal file in Laravel. In the controller file, you can see after we g...