GithubHelp home page GithubHelp logo

Comments (3)

ractoon avatar ractoon commented on May 29, 2024

I'm currently using this in a Laravel 6 project. Things seem to be working as expected.

from laravel-friendships.

kingga avatar kingga commented on May 29, 2024

@ractoon I'm using this in Laravel 6 as well and their seems to be a problem with events.

Call to undefined method Illuminate\Events\Dispatcher::fire()

Small trace:

0:
message: "Call to undefined method Illuminate\Events\Dispatcher::fire()"
exception: "Symfony\Component\Debug\Exception\FatalThrowableError"
file: "/home/vagrant/isapi/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php"
line: 261

1:
file: "/home/vagrant/isapi/vendor/hootlex/laravel-friendships/src/Traits/Friendable.php"
line: 35
function: "__callStatic"
class: "Illuminate\Support\Facades\Facade"
type: "::"

2:
file: "/home/vagrant/isapi/app/Http/Controllers/FriendshipController.php"
line: 35
function: "befriend"
class: "App\User"
type: "->"

If you want to use this as I did I would recommend forking it and just changing everything which uses Event::fire to Event::dispatch in /src/Traits/Friendable.php. Their is a pull request for this already but it seems to have some issues #132.

from laravel-friendships.

CactusJasper avatar CactusJasper commented on May 29, 2024

ok thank you it's working fine now

from laravel-friendships.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.