Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceProvider not found #53

Closed
ghost opened this issue Jan 12, 2016 · 9 comments
Closed

ServiceProvider not found #53

ghost opened this issue Jan 12, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2016

Hi !

I use laravel 4.2
I have this error message when i want going on the log page
Class 'Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class' not found

thx !

@rap2hpoutre
Copy link
Owner

Ok what's your php version?

@ghost
Copy link
Author

ghost commented Jan 12, 2016

PHP 5.4.45

@pawanshetty
Copy link

Even I am getting the same error ,

@rap2hpoutre
Copy link
Owner

The class keyword was added in PHP 5.5, so it will not work with your version. You should replace this (in your config/app.php in providers section):

Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

by this:

'\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider',

And it will work. Source:
http://php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class

@rap2hpoutre
Copy link
Owner

(or you could update your php version to 5.5, 5.6 or 7.0)

@ghost
Copy link
Author

ghost commented Jan 22, 2016

Thank you for your answer !

@AbdullahJisat
Copy link

my log viewer couldn't find. I follow your instruct

@7592024404
Copy link

In ProviderRepository.php line 208:

Class "Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" not found

@7592024404
Copy link

how to fix this

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants