laravel-friendships icon indicating copy to clipboard operation
laravel-friendships copied to clipboard

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

Open jwittekind opened this issue 4 years ago • 4 comments

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 `

jwittekind avatar May 16 '20 11:05 jwittekind

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

mrandibilbao avatar May 25 '20 00:05 mrandibilbao

same here

atix9000 avatar May 29 '20 22:05 atix9000

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

Aujicini avatar Jun 03 '20 05:06 Aujicini

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

sloan58 avatar May 29 '21 17:05 sloan58