Hi!
I really don't know if this issue is related to your project or just my configuration is wrong. I'm just asking for your help, I don't have a clue what's causing this.
So after running php artisan clear-compiled
I always get the following error message:
> php artisan clear-compiled
PHP Fatal error: Class 'Kordy\Ticketit\Models\Comment' not found in /var/www/vendor/kordy/ticketit/src/TicketitServiceProvider.php on line 33
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Kordy\Ticketit\Models\Comment' not found
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Kordy\Ticketit\Models\Comment' not found in /var/www/vendor/kordy/ticketit/src/TicketitServiceProvider.php on line 33
After this when I try to run any page I get the above error.
To solve this, I usually do the following:
I comment out the service provider from my config/app.php
file:
//Kordy\Ticketit\TicketitServiceProvider::class,
Then I run
$ php artisan clear-compiled
$ php artisan optimize
Then I remove the comment from config/app.php
:
Kordy\Ticketit\TicketitServiceProvider::class,
After these steps, everything works. But after a while it's a bit inconvenient.
Can you suggest something, what could I do?