Laravel
Environment Setup
XAMPP - Apache + MariaDB + PHP + Perl - This is common for all OS.
WAMP - Apache server, MySQL, PHP on Windows - This is only for Windows
LAMP - Apache server , MySQL, PHP on Linux - This is only for Linux
MAMP - Apache server , MySQL, PHP on Mac - This is only for Mac
1. Start the apache server and sql.
2. Then check the php version
3. Go to laravel documentation
Check whether your php version is matched for the laravel conditions.
If it did not match, update your php version or change the laravel version.
The better solution is update your php version
If it did not match, update your php version or change the laravel version.
The better solution is update your php version
| check the php version |
| laravel version |
| laravel version |
4. Download the composer and install.
![]() |
| composer |
5. Go to XAMPP-> htdocs create new folder named what you want
6. Move to that folder
7. Open command line and enter this command -
composer create-project --prefer-dist laravel/laravel blog
here is blog is my project name
composer create-project --prefer-dist laravel/laravel blog
here is blog is my project name
8. Then run the project with this command - php artisan serve
These are the basic steps to create a new project
9. MVC - Model View Controller
Understand what mvc is.
| MVC |
10. Understand the directory structure
| directory structure |
11. Go to phpmyadmin and create a DataBase
12. Open the project through code editor (visual studio code is light weight with cmd)
Here model file is database table - we can create many model files
Migration files are table columns - we can create many migration files
13. Then go to .env file change the sql user name, pwd, db name

Comments
Post a Comment