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

Replace usage of deprecated Illuminate\Events\Dispatcher::fire() #142

Open
jwittekind opened this issue May 16, 2020 · 4 comments
Open

Replace usage of deprecated Illuminate\Events\Dispatcher::fire() #142

jwittekind opened this issue May 16, 2020 · 4 comments

Comments

@jwittekind
Copy link

jwittekind commented May 16, 2020

I'm always getting an error when trying to seed my database causd be the method
$user->befriend($arg);

My research has shown that this method is outdated. My updates did not help me to get rid of this error. Will it be fixed?

`
Symfony\Component\Debug\Exception\FatalThrowableError : Call to undefined method Illuminate\Events\Dispatcher::fire()

at /var/www/my-api/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:239
235| if (! $instance) {
236| throw new RuntimeException('A facade root has not been set.');
237| }
238|

239| return $instance->$method(...$args);
240| }
241| }
242|

Exception trace:

1 Illuminate\Support\Facades\Facade::__callStatic("fire")
/var/www/my-api/vendor/hootlex/laravel-friendships/src/Traits/Friendable.php:35

2 App\User::befriend(Object(App\User))
/var/www/my-api/database/seeds/UserTableSeeder.php:56

Please use the argument -v to see more details.

Whoops\Exception\ErrorException : Module 'sqlite3' already loaded

at Unknown:0
1|

Exception trace:

1 Whoops\Run::handleError("Module 'sqlite3' already loaded", "Unknown")
/var/www/my-api/vendor/filp/whoops/src/Whoops/Run.php:408

2 Whoops\Run::handleShutdown()
[internal]:0
`

@mrandibilbao
Copy link

Same here, pls fix it. Really love your package. Thanks

@atix9000
Copy link

same here

@Aujicini
Copy link

Aujicini commented Jun 3, 2020

Sorry, this seems to be unmaintained. Please goto https://github.com/demency/laravel-friendships/issues.

@sloan58
Copy link

sloan58 commented May 29, 2021

I just submitted a PR for this. Hopefully it's sufficient and will be merged.

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

5 participants