{"id":18704776,"url":"https://github.com/lancewan/laravel5-sweetalert","last_synced_at":"2025-11-09T05:30:26.159Z","repository":{"id":57011018,"uuid":"55280919","full_name":"lanceWan/laravel5-sweetalert","owner":"lanceWan","description":"SweetAlert.js for laravel5.2","archived":false,"fork":false,"pushed_at":"2016-04-02T13:50:17.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T06:26:19.844Z","etag":null,"topics":[],"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/lanceWan.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}},"created_at":"2016-04-02T06:18:23.000Z","updated_at":"2016-04-15T08:22:43.000Z","dependencies_parsed_at":"2022-08-21T13:40:44.741Z","dependency_job_id":null,"html_url":"https://github.com/lanceWan/laravel5-sweetalert","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravel5-sweetalert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravel5-sweetalert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravel5-sweetalert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanceWan%2Flaravel5-sweetalert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanceWan","download_url":"https://codeload.github.com/lanceWan/laravel5-sweetalert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239567633,"owners_count":19660518,"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-11-07T12:08:18.611Z","updated_at":"2025-11-09T05:30:26.103Z","avatar_url":"https://github.com/lanceWan.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [SweetAlert.js](http://t4t5.github.io/sweetalert/) for laravel5\n\n## Quick Installation\n\nBegin by installing the package through Composer.\n```php\ncomposer require lancewan/laravel-sweetalert=~1.0\n```\n**Or** add this code to `composer.json` file:\n```php\n\"lancewan/laravel5-sweetalert\":\"~1.0\"\n```\nOnce this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:\n\n### Service Provider\n```php\nLance\\Sweet\\SweetAlertServiceProvider::class,\n```\n\n### Facade\n```php\n'Sweet' =\u003e Lance\\Sweet\\Facade\\Sweet::class,\n```\n\n**Run** `php artisan vendor:publish`\n\nAnd that's it! \n\n## Usage\nUsage is simple. Before redirecting to another page, simply call on Flash to set your desired `Sweet` message. There are a number of methods to assign different levels of priority (info, success, warning, and error).\n### Success\n```php\nSweet::success($message, $title = '', $options = []);\n```\n\n### Info\n```php\nSweet::info($message, $title = '', $options = []);\n```\n\n### Warning\n```php\nSweet::warning($message, $title = '', $options = []);\n```\n\n### Error\n```php\nSweet::error($message, $title = '', $options = []);\n```\n\n### Rendering\nJust add this code to your blade template file:\n\n```php\n{!! Sweet::render() !!}\n```\n\n## Config\n\nset the sweetAlert options in **config/sweet.php** , available options =\u003e [sweetAlert.js](http://t4t5.github.io/sweetalert/)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancewan%2Flaravel5-sweetalert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flancewan%2Flaravel5-sweetalert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flancewan%2Flaravel5-sweetalert/lists"}