{"action":"closed","issue":{"url":"https://api.github.com/repos/uxweb/sweet-alert/issues/65","repository_url":"https://api.github.com/repos/uxweb/sweet-alert","labels_url":"https://api.github.com/repos/uxweb/sweet-alert/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/uxweb/sweet-alert/issues/65/comments","events_url":"https://api.github.com/repos/uxweb/sweet-alert/issues/65/events","html_url":"https://github.com/uxweb/sweet-alert/issues/65","id":272791182,"node_id":"MDU6SXNzdWUyNzI3OTExODI=","number":65,"title":"Sweet alert doesn't show css image","user":{"login":"stealthAngel","id":23656202,"node_id":"MDQ6VXNlcjIzNjU2MjAy","avatar_url":"https://avatars0.githubusercontent.com/u/23656202?v=4","gravatar_id":"","url":"https://api.github.com/users/stealthAngel","html_url":"https://github.com/stealthAngel","followers_url":"https://api.github.com/users/stealthAngel/followers","following_url":"https://api.github.com/users/stealthAngel/following{/other_user}","gists_url":"https://api.github.com/users/stealthAngel/gists{/gist_id}","starred_url":"https://api.github.com/users/stealthAngel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stealthAngel/subscriptions","organizations_url":"https://api.github.com/users/stealthAngel/orgs","repos_url":"https://api.github.com/users/stealthAngel/repos","events_url":"https://api.github.com/users/stealthAngel/events{/privacy}","received_events_url":"https://api.github.com/users/stealthAngel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-10T01:33:04Z","updated_at":"2018-07-24T06:32:29Z","closed_at":"2018-07-24T06:32:29Z","author_association":"NONE","body":"# edit and solution\r\nStill no css images. This package needs to be updated to sweetalert2. It's better to make an if else session statement and hard code the sweet alert inside it. Alternatively, make a sweetalert.blade page and include it. e.g\r\n\r\n```\r\n    @if(session()->has('message'))\r\n        @include('js.sweetAlert', ['message' => session()->get('message'))\r\n    @endif\r\n```\r\nthen in blade file js/sweetAlert.blade.php\r\nhttps://limonte.github.io/sweetalert2/\r\n```\r\n<script>\r\nswal($message)\r\n</script>\r\n```\r\nUntil this package gets updated use the above sample. \r\n# original\r\n\r\nThe sweet alert doesn't show the image but when I do the javascript it works well.\r\nAn image explains everything easier: https://imgur.com/a/E9V5h\r\n\r\ncode:\r\n```\r\n        use Alert;\r\n\r\n        Alert::success('Something went wrong', 'Oops!');\r\n        return view('debug');\r\n```\r\n\r\n\r\nJavascript code does show the image:\r\n\r\n```\r\n<script>\r\n    swal(\"Good job!\", \"You clicked the button!\", \"error\");\r\n</script>\r\n```\r\n"}}
{"actor":{"display_login":"uxweb"}}