Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

andreaspabst's avatar

php artisan: Use of undefined constant FT_UID - assumed 'FT_UID'

Hi there, I have cloned a laravel instance working on my other mac, used composer to install all dependencies and have php 7.1.8 running (it does not work on 7.0.33 either).

If I'm trying to run php artisan command, my terminal says Use of undefined constant FT_UID - assumed 'FT_UID'

If I'm setting up a fresh new instance by laravel new test everything is working fine! and the same project is working on my other mac - but.. why?

I hope there is someone out there who can help me Best

0 likes
2 replies
Snapey's avatar

it you get an error in an artisan command, it's not obvious where that might be. Artisan is using your project itself to run so any errors should be dumped into the laravel log file

it sounds like a config value, and maybe is throwing an error because you don't have it in your .env file so it's using the value from the config php file and it is missing quotes

zakiaziz's avatar

I know it's been years since this was posted but if anyone in the future runs into this problem: I was able to solve it by installing php-imap extension.

1 like

Please or to participate in this conversation.