{"id":15024304,"url":"https://github.com/abdullahghanem/notify","last_synced_at":"2025-10-29T09:41:53.276Z","repository":{"id":62510475,"uuid":"95872456","full_name":"AbdullahGhanem/notify","owner":"AbdullahGhanem","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-30T09:51:03.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T06:59:59.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/AbdullahGhanem.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-06-30T09:26:27.000Z","updated_at":"2018-02-05T07:19:49.000Z","dependencies_parsed_at":"2022-11-02T10:16:30.808Z","dependency_job_id":null,"html_url":"https://github.com/AbdullahGhanem/notify","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahGhanem%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahGhanem%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahGhanem%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahGhanem%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdullahGhanem","download_url":"https://codeload.github.com/AbdullahGhanem/notify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249195835,"owners_count":21228289,"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":[],"created_at":"2024-09-24T20:00:05.991Z","updated_at":"2025-10-29T09:41:53.197Z","avatar_url":"https://github.com/AbdullahGhanem.png","language":"CSS","readme":"# Notify (Laravel)\n\nNotify alert boxes to the browser  and give it a timeout to fly out.\nWorks great to notify the user after a successfull action (CRUD).\nFlash the information from Laravel or create multiple from javascript.\n\n## Installation\n\nFirst, pull in the package through Composer.\n\n```js\n\"require\": {\n\t\"ghanem/notify\": \"1.*\"\n}\n```\nOR \n```bash\ncomposer require ghanem/notify\n```\n\nInclude the service provider within `config\\app.php`.\n\n```php\n'providers' =\u003e [\n\tGhanem\\Notify\\NotifyServiceProvider::class,\n];\n```\n\nAdd a facade alias or use the globel helper function `notify()`.\n\n```php\n'aliases' =\u003e [\n\t'Notify' =\u003e Ghanem\\Notify\\Facades\\Notify::class,\n];\n```\n\n## Usage\n\nWithin any view file (preferable your master layout).\n\n```html\n@include('notify::notify')\n\n\n```\n\nWithin any Controller.\n\n```php\npublic function index()\n{\n    // helper function - default to the 'info'\n    notify('Content');\n\n    // return object first\n    notify()-\u003einfo('Content');\n\n    // via the facade\n    Notify::info('Content');\n    \n    return view('home');\n}\n```\n\nThe different 'levels' are:\n- `notify()-\u003einfo('Content');`\n- `notify()-\u003esuccess('Content');`\n- `notify()-\u003ewarning('Content');`\n- `notify()-\u003eerror('Content');`\n\nThe different arguments:\n- `notify()-\u003einfo('contnent', 10000, false);` // without Cansel button\n\nIf you need to modify the view partial, you can run:\n\n```bash\nphp artisan vendor:publish --provider=\"Ghanem\\Notify\\NotifyServiceProvider\" --tag=view\n```\n\nThe view partial can be found here `resources\\views\\vendor\\notify\\notify.blade`.\n\nYou need to publish the assets.\n\n```bash\nphp artisan vendor:publish --provider=\"Ghanem\\Notify\\NotifyServiceProvider\" --tag=public\n```\n\nFind the files here `public\\vendor\\notify\\`.\nMove the mp3s to `public\\sounds\\`.\nIf you use Laravel Elixir, move the css and js to your `resource\\assets` and include them in your gulpfile.js, otherwise link to the individual files in your html header.\n\n## Note\n\nPlease keep in mind this is for my personal workflow and might not fit your need.\nI developed this to help speed up my day to day workflow. \nPlease let me know about any issues or if you have any suggestions.\n\n## My other Packages\n\n- [Rating](https://github.com/abdullahghanem/rating)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahghanem%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahghanem%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahghanem%2Fnotify/lists"}