-
Notifications
You must be signed in to change notification settings - Fork 0
Setup process
Marco E edited this page Aug 28, 2020
·
1 revision
- The first step is to install correctly Laravel on your computer. I will be using Laravel homestead. If you have any question or something is missing, you should always refer to the Laravel documentation.
- As of August 2020, you should install virtual box and vagrant.
- Add the
laravel/homesteadbox to Vagrant
C:\Users\user_name> vagrant box add laravel/homestead- Download Composer
- Vagrant works better when installed per project. Be sure to use a terminal with admin rights in windows 10:
C:\Users\user_name\code> composer create-project --prefer-dist laravel/laravel meeting-API
C:\Users\user_name\code> cd meeting-API
C:\Users\user_name\code\meeting-API> composer require laravel/homestead --dev
C:\Users\user_name\code\meeting-API> composer require laravel/sanctum
C:\Users\user_name\code\meeting-API> vendor\\bin\\homestead make
C:\Users\user_name\code\meeting-API> vagrant up
C:\Users\user_name\code\meeting-API> ssh
vagrant@meeting-api:~$ cd code
vagrant@meeting-api:~/code$ php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
vagrant@meeting-api:~/code$ php artisan migratemeeting-API - 2020