Laravel 5.2 register method is not implemented
s207152 opened this issue · 4 comments
s207152 commented
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 commented
Did you use the version 2.0 of Laravel-uuid?
s207152 commented
Yes I am sure I was using v2.2.1.
michel3vb commented
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() {}