Giter Site home page Giter Site logo

Comments (7)

Edujugon avatar Edujugon commented on August 14, 2024

@pouriabagheri
Please run composer update in your terminal
let me know if that fixed the issue

from pushnotification.

pouriabagheri avatar pouriabagheri commented on August 14, 2024

@Edujugon yes and this is the result
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Foundation\Application::share() Script php artisan optimize handling the post-update-cmd event returned with error code 255

from pushnotification.

Edujugon avatar Edujugon commented on August 14, 2024

@pouriabagheri,

Could you confirm that you have installed the 2.1.7 version ?
Also clear your project cache and try again. It was an issue with the previous version for apps with laravel ^5.3.

Now, with the v2.1.7 it works like a charm.

if that wouldn't work for you, please do the following:

composer remove edujugon/push-notification

then install it again:

composer require edujugon/push-notification

from pushnotification.

pouriabagheri avatar pouriabagheri commented on August 14, 2024

@Edujugon
I did remove and require again/ but the error persists. I didn't check the version but I assume it was v2.1.7 as i installed it with composer without specifying a version

from pushnotification.

Edujugon avatar Edujugon commented on August 14, 2024

@pouriabagheri,
I've just created a fresh laravel 5.4 app, pull in the package and run vendor:publish and it works fine for me. Even I sent a message and also worked. So I couldn't replicate your issue.

The package doesn't use that method and instead uses singleton. Please refer to the following link to see so:
https://github.com/Edujugon/PushNotification/blob/master/src/Providers/PushNotificationServiceProvider.php#L32

I'm pretty sure it's a cache issue.

from pushnotification.

pouriabagheri avatar pouriabagheri commented on August 14, 2024

@Edujugon Thanks It worked. I realised the difference and this time specified the version.

from pushnotification.

Edujugon avatar Edujugon commented on August 14, 2024

Glad to know you could solve it :)

from pushnotification.

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.