When I run which php I get the following current output:
/usr/bin/php
When I add this after running sudo nano .bash_profile and adding export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH
The expected output should be --> 1
/Applications/XAMPP/xamppfiles/bin/php
But I still get /usr/bin/php
I use macbook air and the following php version:
PHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS )
Copyright © 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright © 1998-2017 Zend Technologies
Laravel has been stored into htdocs of XAMPP.