{"id":14975177,"url":"https://github.com/helmesvs/laravel-notify","last_synced_at":"2025-10-27T13:30:15.971Z","repository":{"id":62515755,"uuid":"105191444","full_name":"Helmesvs/laravel-notify","owner":"Helmesvs","description":"Elegant notifications to laravel with Toastr or PNotify","archived":false,"fork":false,"pushed_at":"2019-11-20T22:26:34.000Z","size":117,"stargazers_count":63,"open_issues_count":5,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-01T05:31:58.213Z","etag":null,"topics":["laravel","notifications","php","pnotify","toastr"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Helmesvs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-28T19:35:33.000Z","updated_at":"2024-03-19T09:22:03.000Z","dependencies_parsed_at":"2022-11-02T13:03:47.973Z","dependency_job_id":null,"html_url":"https://github.com/Helmesvs/laravel-notify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmesvs%2Flaravel-notify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmesvs%2Flaravel-notify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmesvs%2Flaravel-notify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Helmesvs%2Flaravel-notify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Helmesvs","download_url":"https://codeload.github.com/Helmesvs/laravel-notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238497568,"owners_count":19482275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","notifications","php","pnotify","toastr"],"created_at":"2024-09-24T13:51:39.925Z","updated_at":"2025-10-27T13:30:15.418Z","avatar_url":"https://github.com/Helmesvs.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"Laravel Notify\n======\n\nElegant notifications to laravel with [Toastr](https://github.com/CodeSeven/toastr) or [PNotify](https://github.com/sciactive/pnotify)\n\n![alt text](https://i.imgur.com/Tt1L6Bt.png)\n\nInstallation\n------------\n\n1. Either run `composer require helmesvs/laravel-notify` or add `\"helmesvs/laravel-notify\"` to the `require` key in `composer.json` and run `composer install`.\n2. Add `Helmesvs\\Notify\\NotifyServiceProvider::class,` to the `providers` key in `config/app.php`.\n3. Add `'Notify' =\u003e Helmesvs\\Notify\\Facades\\Notify::class,` to the `aliases` key in `config/app.php`.\n4. Run `php artisan vendor:publish --provider=\"Helmesvs\\Notify\\NotifyServiceProvider\" --tag=\"notify\"` to publish the config file.\n5. Include the output `{!! Notify::render() !!}` in your master view template.\n6. *Optional*: Modify the configuration file located in config/notify.php.\n\nUsage\n-----\n\nCall one of these methods in your controllers to insert a notification:\n  - `Notify::warning($message, $title = null, $options = [])` - add a warning notification\n  - `Notify::error($message, $title = null, $options = [])` - add an error notification\n  - `Notify::info($message, $title = null, $options = [])` - add an info notification\n  - `Notify::success($message, $title = null, $options = [])` - add a success notification\n  - `Notify::add($type: warning|error|info|success, $message, $title = null, $options = [])` - add a notification\n  - **`Notify::clear()` - clear all current notification**\n\nConfiguration\n-------------\n\nOpen `config/notify.php` to adjust package configuration. If this file doesn't exist, run `php artisan vendor:publish --provider=\"Helmesvs\\Notify\\NotifyServiceProvider\" --tag=\"notify\"` to create the default configuration file.\n\n\n### General Options \n``` php\n'options' =\u003e [\n        'lib' =\u003e 'toastr',\n        'style' =\u003e 'custom'\n]\n```\n\nSet `'lib'` as `toastr` to use [toastr.js](https://github.com/CodeSeven/toastr) or `pnotify` to use [pnotify.js](https://github.com/sciactive/pnotify).\n\nSet `'style'` to `'custom'` to use custom settings, or as `'default'` to default library settings.\n\nThe style of notifications can be customized in `public/vendor/Notify/style.css`.\n\n### Options Toastr\n``` php\n'ToastrOptions' =\u003e [\n        \"closeButton\" =\u003e false,\n        \"closeHtml\" =\u003e '',\n        \"newestOnTop\" =\u003e true,\n        \"progressBar\" =\u003e false,\n        ...\n]\n```\n\n### Options PNotify\n``` php\n'PNotifyOptions' =\u003e [\n        'title_escape' =\u003e false,\n        'text_escape' =\u003e false,\n        'styling' =\u003e 'brighttheme',\n        'addclass' =\u003e '', \n        ...\n]\n```\n\nFor a list of available options, see [toastr.js' documentation](https://github.com/CodeSeven/toastr) and [pnotify.js' documentation](https://github.com/sciactive/pnotify).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmesvs%2Flaravel-notify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelmesvs%2Flaravel-notify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelmesvs%2Flaravel-notify/lists"}