Nevermind, I restarted php artisan serve and it's working now, I have no idea what that was all about and why a restart would make it work
Nov 24, 2018
3
Level 14
Laravel can't find class that is definitely there
I have my Service Provider
<?php
namespace App\Providers;
use App\Services\Extractors\OrdnanceSurveyExtractorService;
class ExtractorServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
dd(new OrdnanceSurveyExtractorService);
I have my class
<?php
namespace App\Services\Extractors;
class OrdnanceSurveyExtractorService
{
}
It's empty just for testing
It is definitely in the right folder because all of the other classes are working fine
I just can't get my head around why it won't find this particular class
When I press F5 it imports it fine, so it is definitely there
Please or to participate in this conversation.