So I seem to have an error somewhere and hope someone can help me out here.
or point me in the right direction as I seems to have hit a wall and unable to find my error.
So I installed a package : intervention/image
I added the service provider in config/app.php as so:
'Intervention\Image\ImageServiceProvider',
I also added the Facade:
'Image' => 'Intervention\Image\Facades\Image',
however I am receiving the following error :
Class 'Intervention\Image\ImageServiceProvider' not found
At first I thought I would run composer dump-autoload but as that did not work I tried to run php artisan clear-compiled with no success either
I also manually checked that the class exists and it does.
FatalErrorException in ProviderRepository.php line 150:
Class 'Intervention\Image\ImageServiceProvider' not found
in ProviderRepository.php line 150
at FatalErrorException->__construct() in HandleExceptions.php line 131
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 116
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at ProviderRepository->createProvider() in ProviderRepository.php line 115
at ProviderRepository->compileManifest() in ProviderRepository.php line 59
at ProviderRepository->load() in Application.php line 468
at Application->registerConfiguredProviders() in RegisterProviders.php line 15
at RegisterProviders->bootstrap() in Application.php line 183
at Application->bootstrapWith() in Kernel.php line 199
at Kernel->bootstrap() in Kernel.php line 110
at Kernel->sendRequestThroughRouter() in Kernel.php line 84
at Kernel->handle() in index.php line 53
at {main}() in index.php line 0
the composer dump-autoload -o did unfortunately not do the trick.
tried several times now still with the exact same error which seems really odd as the line no longer exist and the package have been removed, and it is not being called from my app anywhere.
@pakuize delete the vendor/compiled.php and the storage/framework/compiled.php run composer update again. This should trigger php artisan clear-compiled and php artisan optimise to be run too, if it doesn't, run those as well.
well this is a little wierd I just fired up my labtop and pulled my project down on it, and there is no problem on that machine at all it's running as expected.
Could this be something to do with timestamps as my normal machine here has some trouble keeping the time correct it's changing every now and then due to a almost dead cmos battery
So far it does seem like it is the time, as I fixed the clock on the pc, then the project worked as expected.
Then a little later here the clock switched back again and the project again came with the same error.
Now just fixed the time again and now the project is working again.
This might just be an issue for windows users I do not know, it's not often I am at a windows pc anymore.
However with of you thank you both @sitesense and @mstnorris for your input and very fast replys, this is why I love coming onto this forum help full people everywhere