I get an error when trying to use artisan command tinker. For example I would like to add a user. In my terminal I type
$ php artisan tinker
Sometimes pcntl functions are disabled in some distros, so you have to
Find your cli's php.ini file
php --ini
Edit it that php.ini, usually you'll have to do
sudo gedit /etc/php5/cli/php.ini
or
sudo vim /etc/php5/cli/php.ini
and comment a line that starts with
; disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,...
You don't really have to comment it all, you can just enable pcntl functions, by removing them from that line, but if this is a development box, you can just enable everything.