Skip to content

Instantly share code, notes, and snippets.

@tamzidoronno
Last active June 25, 2022 08:50
Show Gist options
  • Save tamzidoronno/a986e185f2e5bfe6333ba986df9b2570 to your computer and use it in GitHub Desktop.
Save tamzidoronno/a986e185f2e5bfe6333ba986df9b2570 to your computer and use it in GitHub Desktop.
New Laravel Environment Setup

Setup Git if you haven't already: https://git-scm.com/download/win

Setup Xampp from this: https://blog.templatetoaster.com/install-xampp-on-windows/

After installing, on step 4, run only 'MySQL' from xampp control panel. You don't need to run 'apache'.

Setup Composer:

Download and run this : https://getcomposer.org/Composer-Setup.exe open your git/cmd terminal and check if composer is installed completely: composer -v
It will show the version installed, otherwise it has not been installed properly.

Project Setup

  1. Open your git CLI on Desktop and clone the repository to your Desktop
git clone https://github.com/tamzidoronno/courseller.git
  1. Go to http://localhost/phpmyadmin on browser and create a new database 'courseller' following this: https://media.geeksforgeeks.org/wp-content/uploads/20210316195142/php3.jpg

  2. Go to the project directory (Desktop/courseller) and open git CLI and execute the following commands serially :

cp .env.example .env
composer install
php artisan key:generate
php artisan migrate
php artisan db:seed
php artisan storage:link
  1. Now run the project :
php artisan serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment