Skip to content
Advertisement

ServiceProvider not found Laravel 5.0

I’m trying to create a custom package for Laravel 5.0 based on this tutorials

The folder structure and service providers are exactly same, but some how the Serviceprovider is not updating autoload_namespace.php.

I already added my service provider in app/config.php

JavaScript

In my root composer.json I have following code.

JavaScript

Under my packages folder files struture is as follows.

JavaScript

I can’t use Laravel 5.1 it requires php 5.5.9 , Other wise I can user artisan packager command.

The error is getting is as follows.

JavaScript

Any help will be appreciated last 3hrs I’m digging on it.

Advertisement

Answer

I solved it myself ,

I tried composer dumpautoload -o so it works for me.

Also some time needs composer clearcache too.

Hope it helps someone else..

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement