Git Product home page Git Product logo

laravel-desktop-notifier's Introduction

laravel-desktop-notifier's People

Contributors

jagroop avatar joaorobertopb avatar laravel-shift avatar m1guelpf avatar nunomaduro avatar octoper avatar owenvoke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-desktop-notifier's Issues

Receive desktop notification when browser is closed

Hi, how does the desktop notification work when browser is closed? If I apply a notification to appear to another user when I create a task for him and he has the browser closed, he doesn't receive desktop notification.

Usage instructions not clear

Hello!
Very nice package, but can you better explain in step by step what to do after package is installed? Tutorial with commands and files to be edited will help many developers.
thanks!

LogicException in Command.php line 65: The command defined in "App\Http\Controllers\mycontroller" cannot have an empty name.

Hello, i try to install and get this error:

LogicException in Command.php line 65:
The command defined in "App\Http\Controllers\mycontroller" cannot have an empty name.

Here my full code:

namespace App\Http\Controllers;

use Illuminate\Console\Command;
use NunoMaduro\LaravelDesktopNotifier\Notifications;

class mycontroller extends Command
{
use Notifications;

public function handle()
{
    $this->notify('Hello Web Artisan', 'Love beautiful code? We do too!');
}

}

Did i do something wrong?
Any way thanks for this good package

Can't install with Laravel 6.6.2

Partial Composer log:

Problem 1
- Conclusion: remove illuminate/container v6.6.2
- Installation request for illuminate/pipeline (locked at v6.6.0) -> satisfiable by illuminate/pipeline[v6.6.0], laravel/framework[v6.6.0].
- Conclusion: don't install illuminate/container v6.6.2
- Conclusion: don't install laravel/framework v6.6.2

- Can only install one of: illuminate/contracts[v5.8.9, v6.6.2].

ErrorException Array Offset

"message": "Trying to access array offset on value of type null",
"exception": "ErrorException",
"file": "D:\\WAM\\login-auth\\login-auth\\vendor\\nunomaduro\\laravel-desktop-notifier\\src\\LaravelDesktopNotifierServiceProvider.php",
"line": 40,

I have followed the readme and paste the same code as the read me. Doesn't work

Add more options on notifier

It should be nice to have the possibility to add options, like url, sound, etc ...

So when we click on open, we could open a website or whatever.

Thanks

is this generic for all browser of user specific

was looking you package it is super easy for desktop notification .

I have a question hope you never mind to answer such a foolish question :D

when ever it trigger notify method does it show on all systems where ever our app is open or jus specific users .

let say i am calling it on a condition where login_userId =2 . what happen i have 10 active users that time.
does it show only for user id 2 or all .

TIA for your quick response.

Conflicts while installing package

Hello,
while installing the package I receive these errors while trying to install desktop notifier:

Problem 1 - nunomaduro/laravel-desktop-notifier v2.5.0 requires illuminate/support ^6.0|^7.0|^8.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but it conflicts with another require. - nunomaduro/laravel-desktop-notifier v2.5.1 requires illuminate/support ^6.20|^7.29|^8.12 -> found illuminate/support[v6.20.0, v6.20.1, v6.20.2, 6.x-dev, v7.29.0, v7.29.1, v7.29.2, 7.x-dev, v8.12.0, ..., 8.x-dev] but it conflicts with another require. - Root composer.json requires nunomaduro/laravel-desktop-notifier ^2.5 -> satisfiable by nunomaduro/laravel-desktop-notifier[v2.5.0, v2.5.1].

When I try to install the above Illuminate support I still get similar error:

Problem 1 - Root composer.json requires illuminate/support ^8.12, found illuminate/support[v8.12.0, ..., 8.x-dev] but it conflicts with another require.

Can you help?

Notification Title & Icon Issues

Works fine on iMac. The notification window title (not the message title) says Script Editor. Would be nice to be able to set that to something else.

Also, I cannot get the icon to display. Im using the resource_path, I've tried public_path, absolute url etc... nothing seems to set the icon.

How to access the notifier within a controller?

Hi! I am trying to use this package within a controller like so:

use NunoMaduro\LaravelDesktopNotifier;

Looking at the source code for LDN I see a boot() function which sets up the function notify() within the service provider. So when I call notify() with options I get this error:

Call to undefined function App\Http\Controllers\notify()

So notify isn't being imported as I expected, wondering exactly how I can access this!

Also, thanks for your work, super lovely code to read, thanks!

P.S. Using laravel 5.6. Thanks!

Icon not shown in desktop notifier

Hi, the desktop notifier works fine, but even adding the code
resource_path('image.png')
the image is not showing. I read some other posts for which it would need required to install other package into the OSX o Windows pc, but this cannot be asked to all users using this feature.

Any solution?

Illuminate packages conflict with other required

Hello,
while installing the package I receive these errors while trying to install desktop notifier:

Problem 1 - nunomaduro/laravel-desktop-notifier v2.5.0 requires illuminate/support ^6.0|^7.0|^8.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but it conflicts with another require. - nunomaduro/laravel-desktop-notifier v2.5.1 requires illuminate/support ^6.20|^7.29|^8.12 -> found illuminate/support[v6.20.0, v6.20.1, v6.20.2, 6.x-dev, v7.29.0, v7.29.1, v7.29.2, 7.x-dev, v8.12.0, ..., 8.x-dev] but it conflicts with another require. - Root composer.json requires nunomaduro/laravel-desktop-notifier ^2.5 -> satisfiable by nunomaduro/laravel-desktop-notifier[v2.5.0, v2.5.1].

When I try to install the above Illuminate support I still get similar error:

Problem 1 - Root composer.json requires illuminate/support ^8.12, found illuminate/support[v8.12.0, ..., 8.x-dev] but it conflicts with another require.

Can you help?

Unable to read app property, I think the Command has change $app property to $laravel

php artisan desktop:example

ErrorException : Undefined property: App\Console\Commands\DesktopNotification::$app

at /home/vagrant/code/wc2/vendor/nunomaduro/laravel-desktop-notifier/src/LaravelDesktopNotifierServiceProvider.php: 42
38| */
39| Command::macro(
40| 'notify',
41| function (string $text, string $body, $icon = null) {

42| $notifier = $this->app[Contracts\Notifier::class];
43|
44| $notification = $this->app[Contracts\Notification::class]
45| ->setTitle($text)
46| ->setBody($body);

Exception trace:

1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Undefined property: App\Console\Commands\DesktopNotification::$app", "/home/vagrant/code/wc2/vendor/nunomaduro/laravel-desktop-notifier/src/LaravelDesktopNotifierServiceProvider.php", ["Hello Web Artisan", "Love beautiful code? We do too!"])
/home/vagrant/code/wc2/vendor/nunomaduro/laravel-desktop-notifier/src/LaravelDesktopNotifierServiceProvider.php : 42

2 App\Console\Commands\DesktopNotification::NunoMaduro\LaravelDesktopNotifier{closure}("Hello Web Artisan", "Love beautiful code? We do too!")
/home/vagrant/code/wc2/vendor/laravel/framework/src/Illuminate/Support/Traits/Macroable.php : 106

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.