Getting start with Laravel framework for absolute beginners
Hello friends, in this post i am going to guide you on getting start with Laravel framework. Basically Laravel is one of best PHP framework. This framework is one of mostly popular framework among software industries. So it is better to know Laravel in order to build web applications. Now lets begin laravel tutorial for absolute beginners
So lets get start with Laravel framework. First of all you need to install some dependencies. Download and install composer. Generally composer is a dependency manager to Laravel framework. We can install and create a Laravel project easily with Composer. So u can download and install Composer from below link
And then you need to create a folder where you need to create your project. For example create your project folder in C:/Projects/Laravel new project
Go to your created project directory and open that folder in CMD (in navigation panel of the particular folder just type cmd and press enter).
In order to create new project enter following line and press enter
composer create-project --prefer-dist laravel/laravel myblog
So it will generate all the required files and folders relevant to your project. Now in order to run your project type following line and execute.
php artisan serve
So as an extra hint for you, If you want to use different host and IP with public folder itself to run your project please see how it done from this post
Extra Note – If you are using a localhost server (for example :- Xampp or Wampp) when you create directory create the project folder in relevant directory (ex:- www folder). So when you want to run your project you can run Laravel project as usual as other projects.
Thank you!! This laravel tutorial is for absolute beginners. If you have any questions please comment below.