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

AnassRakibi's avatar

PDO exception on php artisan clear-compiled in Laravel 5

I am facing a weird issue with forge . I have a laravel 5 app hosted on a DO Server and I use Forge as well. When I try to deploy the script after I pushed new commits , I keep getting :

php artisan clear-compiled [Illuminate\Database\QueryException] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'troisdemis_com.permissions' doesn't exist (SQL: select * from permissions)

I restarted the Server , uninstalled the repo, dropped the database ( ssh) reinstalled the repo again , and whenever I run composer install I still keep the same error. Do you know guys what could cause the issue ?

0 likes
2 replies
jimmitjoo's avatar

I do get this as well, very wierd. And it gets even more wierd since it works when I run php artisan clear-compiled manually.

Please or to participate in this conversation.