Adding PHP extensions to Heroku

Use of undefined constant FTP_BINARY

Another wild goose chase. PHP 7 does not come with it’s ftp extension enabled by default. Typically you’d uncomment the line “extension=ftp.so” in the php.ini file. However, Heroku doesn’t support php.ini. In their docs, Heroku asks users to add a “.user.ini” file. Which didn’t work for me and some other folks who write blogs. Even … Read more

Laravel Error 419 Session Expired On Post Requests

Laravel's default 419 error page

Clear your cache Getting a 419 error on login or posts requests? The first step is to check the cache and clear it. From your terminal, you can run. This is common during local development from constantly changing configurations. Check CSRF verification. Laravel automatically generates a CSRF “token” for each active user session managed by … Read more