I am trying to use the migrate
function in Laravel 4
on OSX
. However, I am getting the following error:
Laravel requir
To those that uses XAMPP 1.7.3 and Mac
which php
/usr/bin/php
, then proceed to 3.sudo nano ~/.bash_profile
(or sudo vim ~/.bash_profile
if you know how to use it)export PATH="/Applications/XAMPP/xamppfiles/bin:$PATH"
cd ~
. .bash_profile
which php
. If you did it right, it should be the same as the path in #4.The reason for the mcrypt error is because your Mac uses its native php, you need to change it to the one xampp has.
P.S. I'd recommend using MAMP for Laravel 4 for Mac users, this issue will get resolved along with the php file info error without a sweat, and the php version of xampp is so outdated.