Laravel

Master Laravel: Basic System Requirement,Installation and Setup

Aug 6, 2024, 4:30 PM
Blog Thumbnail

Here is a step-by-step guide to learning Laravel, along with some recommended resources:

Step 1: Minimum System Requirement and Application

  • Operating System: Windows 7 and upgrade, macOS, or Linux. Whatever you’re comfortable with.
  • PHP: Version 7.2 or higher. (For Laravel 8.x, you’ll need PHP 7.3 or higher.)
  • Database: MySQL version 5.7 or higher. Other databases like MongoDB and NoSQL can also be used.
  • Text Editor/IDE: Choose your favorite code editor like Visual Studio Code or Sublime Text.
    1. How to Install Visual Studio: A Step-by-Step Guide Link: https://www.launchidea.in/blog/HTML/getting-started-with-html-setup-edit-run-code-in-browser
    2. How to Install Sublime Text Editor: A Step-by-Step Guide Link:
  • Browser: According to my reference, "Chrome" is the best browser for website development with the latest version. You can use another browser like "Microsoft Edge" etc.

Step 2: Install XAMPP in Your System

XAMPP is like an all-in-one toolkit for your development needs. It includes Apache, MySQL, PHP, and Perl.

  1. Follow the simple installation instructions. Click the link for the step-by-step process.
  2. Click to download and set up XAMPP: XAMPP download page.
  3. Download the version that suits your operating system.

Step 3: Install Composer

Composer helps you manage PHP project dependencies. Think of it as a tool that keeps track of all the libraries and packages your project needs.

  1. Download and install Composer by following the instructions provided.
  2. Visit the Composer download page.

Step 4: Install Laravel

Now comes the fun part—installing Laravel!

  1. After installing XAMPP and Composer, run the following command to install Laravel:
  2.                     
                        composer global require laravel/installer
                    

    When all installations are complete, you can proceed to create a new Laravel project.

Step 5: Create a New Project

Run this command to create a Laravel project. This command creates a Laravel project with version 11:

                
                laravel new myproject
            

Need Laravel 10? Enter the following command:

               
                composer create-project laravel/laravel:^10.0 myproject
            

Remember to replace “myproject” with your desired project name.

Step 6: Free Resources to Learn Laravel

There are plenty of free resources to help you get the hang of Laravel. Here are some of the best:

  • LearnVern - Offers video tutorials and courses.
  • YouTube - Search for Laravel tutorials. Channels like Laravel Daily and Laravel News are fantastic.
  • Laracasts - Another great source for video tutorials and courses.
  • Laravel Docs - Your go-to for official guides and tutorials.

And don’t forget these additional resources:

  • Laravel News - Stay updated with news, tutorials, and more.
  • Reddit - Join the community discussions and get support.
  • Laravel Forum - The official forum where you can ask questions and share knowledge.

That’s it! You’re all set to start your Laravel journey. Remember, practice makes perfect, so don’t be afraid to experiment and try new things. Happy coding!