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

Laravel 5.2 register method is not implemented #46

Open
s207152 opened this issue Jan 13, 2018 · 4 comments
Open

Laravel 5.2 register method is not implemented #46

s207152 opened this issue Jan 13, 2018 · 4 comments

Comments

@s207152
Copy link

s207152 commented Jan 13, 2018

Hi all.

I have encountered error after adding UuidServiceProvider::class in providers and Uuid::class in alias of config/app.php,
and running config cache with php artisan config:cache.

The error is as below:

[Symfony\Component\Debug\Exception\FatalErrorException]                      
  Class Webpatser\Uuid\UuidServiceProvider contains 1 abstract method and mus  
  t therefore be declared abstract or implement the remaining methods (Illumi  
  nate\Support\ServiceProvider::register)

As I look into the UuidServiceProvider class, looks like the register method is missing which is required in Laravel 5.2 ServiceProvider.

@webpatser
Copy link
Owner

Did you use the version 2.0 of Laravel-uuid?

@s207152
Copy link
Author

s207152 commented Feb 8, 2018

Yes I am sure I was using v2.2.1.

@michel3vb
Copy link

michel3vb commented Feb 8, 2018

Same problem here with L5.2 and v2.2.1

Adding the following piece of code to the UuidServiceProvider will fix the problem
public function register() {}

@ssi-anik
Copy link

ssi-anik commented Feb 24, 2020

if the PR #64 is merged, the problem will be solved.

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