{"id":14974473,"url":"https://github.com/whereislucas/laravel-bootstrap-toasts","last_synced_at":"2025-10-27T09:30:31.022Z","repository":{"id":34006066,"uuid":"165696699","full_name":"WhereIsLucas/laravel-bootstrap-toasts","owner":"WhereIsLucas","description":"Bootstrap Toast made easy for Laravel","archived":false,"fork":false,"pushed_at":"2023-03-31T12:45:39.000Z","size":13,"stargazers_count":27,"open_issues_count":4,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-01T04:31:41.532Z","etag":null,"topics":["bootstrap-4","bootstrap4","laravel","laravel5","toasts"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WhereIsLucas.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-01-14T16:41:08.000Z","updated_at":"2023-09-17T13:52:50.000Z","dependencies_parsed_at":"2024-10-11T10:41:59.136Z","dependency_job_id":"4075cd7d-2473-43a4-9303-3ddafb63bdbe","html_url":"https://github.com/WhereIsLucas/laravel-bootstrap-toasts","commit_stats":{"total_commits":12,"total_committers":4,"mean_commits":3.0,"dds":0.5833333333333333,"last_synced_commit":"bafb450c35fe3c04b8ae8ce16740fa957fa971ff"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhereIsLucas%2Flaravel-bootstrap-toasts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhereIsLucas%2Flaravel-bootstrap-toasts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhereIsLucas%2Flaravel-bootstrap-toasts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhereIsLucas%2Flaravel-bootstrap-toasts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WhereIsLucas","download_url":"https://codeload.github.com/WhereIsLucas/laravel-bootstrap-toasts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238471963,"owners_count":19478136,"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":["bootstrap-4","bootstrap4","laravel","laravel5","toasts"],"created_at":"2024-09-24T13:50:36.973Z","updated_at":"2025-10-27T09:30:30.652Z","avatar_url":"https://github.com/WhereIsLucas.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bootstrap flash messages for your Laravel app \n\nThis package, based on `laracasts/flash` provides an interface for Bootstrap 4.2 toast messages.\n\n## Installation\n\nGet the package with composer\n```bash\ncomposer require whereislucas/laravel-bootstrap-toasts\n```\n\nIf you are not using Laravel 5.5 or higher, include the service provider within your `config/app.php` file.\n```php\n'providers' =\u003e [\n    WhereIsLucas\\LaravelBootstrapToasts\\ToastServiceProvider::class,\n];\n```\n\nThis package is made for Bootstrap 4.2 and higher, be sure to include the css and js files on your page.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css\" \u003e\n```\n```html\n\u003cscript src=\"https://code.jquery.com/jquery-3.3.1.slim.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js\"\u003e\u003c/script\u003e\n```\n\n\n## Usage\n\nFirst of all, include the snippet in your Blade templates\n```html\n@include('laravel-bootstrap-toasts::message')\n```\n\nThen, in your controller, call the `toast()` method to create a toast message.\n\n```php\npublic function edit()\n{\n    toast('Post edited!');\n    return redirect(route('posts.list'));\n}\n```\n\nThe toast method accepts the title and level optional arguments : \n```php\ntoast('message','level','title')\n```\n\nThere are a few quick methods to modify the toast:\n\n- `toast('Message')-\u003esuccess()`: Set the toast level as \"success\".\n- `toast('Message')-\u003einfo()`: Set the toast level as \"info\".\n- `toast('Message')-\u003eerror()`: Set the toast level as \"danger\".\n- `toast('Message')-\u003ewarning()`: Set the toast level as \"warning\".\n\n\n- `toast('Message')-\u003etitle(\"Toast title\")`: Set the toast title.\n- `toast('Message')-\u003eimportant()`: Add a close button to the toast.\n\n## Configuration \u0026 personalization\n\nYou can publish the configuration file to tweak the position of the toast or the default value for 'autohide'.\n```bash\nphp artisan vendor:publish --provider=\"WhereIsLucas\\LaravelBootstrapToasts\\ToastServiceProvider\" --tag=\"config\"\n```\nYou can publish the view and tweak it if you want!\n```bash\nphp artisan vendor:publish --provider=\"WhereIsLucas\\LaravelBootstrapToasts\\ToastServiceProvider\" --tag=\"views\"\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhereislucas%2Flaravel-bootstrap-toasts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhereislucas%2Flaravel-bootstrap-toasts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhereislucas%2Flaravel-bootstrap-toasts/lists"}