Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tooinfinity/1e05c33248bc7c7f228b38510ec7298a to your computer and use it in GitHub Desktop.
Save tooinfinity/1e05c33248bc7c7f228b38510ec7298a to your computer and use it in GitHub Desktop.

Setting up an environment for Laravel Projects

1 - Install PHP Apatche and SQL

you have multiple applications offer that by installing them

Cross-Platform : Xampp

Windows users : Laragon

Mac users: MAMP

choose an application that compatible with your system, in my case windows users I use Laragon he has a useful feature that creates laravel project with his database and host that in a link like this laravelproject.beta

2 - Install Composer A Dependency Manager for PHP

go to getcomposer download here

after that install it and Do not forget to choose the version of PHP that you are using you can find it in

C:\laragon\bin\php\php-"your php version"\php.exe

or

C:\xampp\php\php.exe

3 - Install Laravel Globally in your System

go to Laravel documentation Website here copy and run this command

    composer global require laravel/installer

now you can create your first project laravel

4 - create your Laravel Project

you can do that by run this

    laravel new "your project name"

or by composer run this

    composer create-project --prefer-dist laravel/laravel "your project name"

to show your project in your browser run this

    php artisan serve

in your browser type click http://localhost:8000 to show website

5 - Install code editing

this is a lot of code editing but, I choose you the best

Visual Studio Code it's support cross-platform windows,linux and mac os , free to use ,a bunch of extentions and languges that is support (it's best for me)

6 - Install Git

Git cross-platform Windows, Linux and mac os, is a free and open-source distributed version control system designed to handle everything from small to very large projects with speed and efficiency

Happy Coding 😃 💪 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment