GithubHelp home page GithubHelp logo

Comments (4)

ash-jc-allen avatar ash-jc-allen commented on August 16, 2024 1

Hey! Great spot, I'm glad you managed to fix that.

If you're still running into any issues with trying to access the visit property, feel free to give me a shout and I'll see if I can lend a hand at all 😄

from short-url.

ash-jc-allen avatar ash-jc-allen commented on August 16, 2024

Hey! Sorry that you're having problems with the package. I'll take a look into this 😄

I did notice in your EventServiceProvider example that the PhoneMessageLinkClicked listener looks like is being imported with a namespace that looks like a Laravel vendor namespace (use Illuminate\Auth\Listeners\PhoneMessageLinkClicked;). Is that the actual namespace of the listener you're trying to import?

I'm just wondering if there's an error in the example you've sent over, or if that's intentional 🙂

from short-url.

HeadStudios avatar HeadStudios commented on August 16, 2024

Hi Ash,

Thank you for your quick response - and you're absolutely right my namespacing convention for the my Listener was incorrect in the EventServiceProvider file - I have just updated it as per your instructions which you can see in the Gist below:
https://gist.github.com/HeadStudios/777e2375d99a68cb2cf0f43550ace1a5

I then created another shortlink and visited it however can confirm the event is still not firing - I really appreciate your input and any other ideas you have would be much appreciated.

from short-url.

HeadStudios avatar HeadStudios commented on August 16, 2024

Hi Ash,

Just updating that I have fixed the event firing action - it was due to the namespace of the Event itself which I have updated to:
use AshAllenDesign\ShortURL\Events\ShortURLVisited;

The only challenge now is the handle() functionality throwing an error for this code:
https://gist.github.com/HeadStudios/7e4a2d499ef31d45542d003b862ff25c

With the error:
Undefined property: AshAllenDesign\ShortURL\Events\ShortURLVisited::$visit

However I am confident I will be able to take it from here - thank you for pointing me to the use statements being an issue and I appreciate your quick response and help!

I will mark this as Closed.

from short-url.

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.