{"id":15016967,"url":"https://github.com/f1uder/laravel-notification","last_synced_at":"2025-04-12T10:42:39.477Z","repository":{"id":56856175,"uuid":"526413561","full_name":"f1uder/laravel-notification","owner":"f1uder","description":"Simple toast notifications for Laravel + Livewire + AlpineJS","archived":false,"fork":false,"pushed_at":"2023-05-19T17:37:48.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T05:33:25.121Z","etag":null,"topics":["alpinejs","laravel","livewire","notice","toast-notifications"],"latest_commit_sha":null,"homepage":"","language":"Blade","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/f1uder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-19T00:29:55.000Z","updated_at":"2024-02-28T17:39:30.000Z","dependencies_parsed_at":"2024-09-16T06:02:01.995Z","dependency_job_id":"ae2502c1-321a-4405-88cc-3e5222149cf3","html_url":"https://github.com/f1uder/laravel-notification","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"2f3033e7d8176418c96b61205fa2f3ac8a6a73dd"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flaravel-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flaravel-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flaravel-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f1uder%2Flaravel-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f1uder","download_url":"https://codeload.github.com/f1uder/laravel-notification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248557377,"owners_count":21124158,"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":["alpinejs","laravel","livewire","notice","toast-notifications"],"created_at":"2024-09-24T19:49:37.670Z","updated_at":"2025-04-12T10:42:39.454Z","avatar_url":"https://github.com/f1uder.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Livewire Notification (+ AlpineJS)\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/f1uder/laravel-notification.svg?style=flat-square)](https://packagist.org/packages/f1uder/laravel-notification)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/f1uder/laravel-notification/Fix%20PHP%20code%20style%20issues?label=code%20style)](https://github.com/f1uder/laravel-notification/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/f1uder/laravel-notification.svg?style=flat-square)](https://packagist.org/packages/f1uder/laravel-notification)\n\n\u003cimg alt=\"Laravel Livewire Notification\" src=\"https://nrox.ru/images/laravel-notification.jpg\" /\u003e\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require f1uder/laravel-notification\n```\n\nPublish the config file with:\n\n```bash\nphp artisan vendor:publish --tag=\"laravel-notification\"\n```\n\nAdd css file (notification.css)\n```css\n@import \"../../public/vendor/laravel-notification/css/notification.css\";\n\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n```\n\nAdd code to template, after body tag\n\n```html\n\u003cbody\u003e\n  \u003clivewire:laravel-notification.notice/\u003e\n  ...\n\u003c/body\u003e\n```\n\n## Usage Laravel\n\n```php\nreturn redirect('/')-\u003enotice('message text', 'alert');\n```\n\n```php\nreturn redirect()-\u003eroute('home')-\u003enotice('message text', 'info');\n```\n\n## Usage Livewire component\n\n```php\n$this-\u003enotice('message text', 'alert');\n```\n\n```php\nreturn redirect('/')-\u003enotice('message text', 'alert');\n```\n\n## Usage alpineJS\n\n```js\n$dispatch('notice', {message: 'message text', type: 'alert'});\n```\n## Arguments\n\nUsage: `notice($message, $type, $timer, $title)`\n* `$message` - Message.\n* `$type` - Notification type.\n    * `alert`\n    * `info` - default\n    * `success`\n* `$timer` - 3000 default = 3 sec.\n* `$title` - Notification header. Default = null.\n\n## Config\n`config/notification.php`\n* `$timer` - Notification display time in seconds.\n* `$position` - Notification position.\n  * `tr` - Top right (default).\n  * `tl` - Top left.\n  * `br` - Bottom right.\n  * `bl` - Bottom left.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1uder%2Flaravel-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff1uder%2Flaravel-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff1uder%2Flaravel-notification/lists"}