Model View Controller, where model handles ur database, view handles ur frontend, the controller handles ur backend codes. Next class will be tomorrow
Hi, folks you are welcome to laravel absolute beginner masterclass, if you are here to learn how laravel works, I will recommend you to visit laravel website here but if you are here to use laravel build a product, you are very welcome. Laravel is a PHP Framework
What is a Framework?
Before I dive into explaining Laravel, you will need to understand what is a framework. In general, a Framework is a set of conceptual structure and guidelines, used to build a useful product without so much stress.
Laravel is a web application framework with an expressive, elegant syntax which aims to make the development process a pleasing one for the developer without sacrificing application functionality. Laravel follows the MVC (Model View Controller) structure which makes it easy to learn and rapidly prototype the web applications
- PHP version from 7.3 and above
- I will make use of latest laravel version 8 for this
How to Install PHP
Visit this link to download Xampp for your PHP, download based on your OS and install it.
How to install Composer
Visit this link to download composer for your OS, for window user click here, After downloading install the composer, you need to select the path for your PHP, the composer will alert you during the installation on windows.
To check if your PHP and composer are successfully installed, open your command (cmd) and type PHP -v, you will see a screen like this
PHP 7.3.5 (cli) (built: May 1 2019 13:17:17) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
Check for composer type on your cmd composer, a list of a variable will appear on the screen
Laravel Installation Completion
Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.
First, download the Laravel installer using Composer:
composer global require laravel/installer
Creating a new project using - Create-Project
- first, go to your composer, the local disk you will see xampp -> htdocs-> create a new folder, right on the folder by holding shift + right click and follow the step below
- Install Laravel by issuing the Composer
projectcommand in your terminal:
composer create-project --prefer-dist laravel/laravel SampleSite
You have successfully installed your first project using laravel.
Congrats you can now move to the next class by clicking here
Click Here To Comment
Thanks for this amazing tutorial, kizhinho.
There are so much i can take away from this and refractor some PHP that i have been working on,I hope to see more from you anytime soon.
I love this. Please can we get video explanations if possible.
I have been a huge fan of this blog since I came across it from a school friend here in California.
OK this nice..
But I don't get that MVC...please?
And when will be the next class.. Cause I'm really interested in Laravel?