how to fix Service provider class not found when using repository?
<p>I am new to repository in laravel and trying to work on it , But when i run the application it throws the error </p>

<p><strong>Class 'App\Repositories\User\UserRepoServiceProvider' not found</strong></p>

<p>My interface and repository files are located in App\Repositories\User where Service Provider is also located </p>

<p>Here is my service provider </p>

<pre><code>namespace App\Repositories\User

use Illuminate\Support\ServiceProvider;

class UserRepoServiceProvider extends ServiceProvider

{

public function register()
{

$this-&gt;app-&gt;bind('App\Repositories\User\userinterface','App\Repositories \User\userrepository');
}
}
</code></pre>

<p>Here is my userrepository.php</p>

<pre><code>namespace App\Repositories\User

use App\Repositories\User\userinterface;
use App\car;

class userrepository implements userinterface
{

public function __construct(car $car){

$this-&gt;car = $car;
}

public function get($id)
{

return $this-&gt;car-&gt;findCar($id);
}

public function delete($id)
 {

return $this-&gt;car-&gt;deleteCar($id);
}


}
</code></pre>

<p>Here is my interface userinterface.php</p>

<pre><code>namespace App\Repositories\User;

interface userinterface{

public function get($id);

public function delete($id);
}
</code></pre>

<p>I have also registered it in config/app.php file </p>

<p><strong>App\Repositories\User\UserRepoServiceProvider::class</strong></p>

<p>I did composer dump-autoload -o but no use. I cannot do composer update , when i do it throws the same error </p>