{"absolute_url": "/jbmckee/flash-message/", "blog_post": false, "code": "\\Session::flash('success', \"rows imported successfully.\");\n$request->session()->flash('danger', \"There were $num_errors errors.\");\n", "created": "2017-12-18T23:52:05.993334", "description": "", "description_rendered": "", "embed_url": "https://snipt.net/embed/ae12ecf7b516246d961ed5eab8cef527/", "full_absolute_url": "/jbmckee/flash-message/", "id": 18, "lexer": "text", "line_count": 3, "log_entries": [{"code": "\\Session::flash('success', \"rows imported successfully.\");\n$request->session()->flash('danger', \"There were $num_errors errors.\");\n", "created": "2017-12-18T23:52:06.249168", "diff": "--- \n+++ \n@@ -0,0 +1,2 @@\n+\\Session::flash('success', \"rows imported successfully.\");\n+$request->session()->flash('danger', \"There were $num_errors errors.\");\n", "user": "jbmckee"}], "meta": "", "modified": "2026-05-18T02:02:32.971724", "publish_date": "2017-12-18T23:52:05.917214", "raw_url": "/raw/ae12ecf7b516246d961ed5eab8cef527/", "resource_uri": "/api/public/snipt/18/", "slug": "flash-message", "stylized": "<table class=\"highlighttable\"><tr><td class=\"linenos\"><div class=\"linenodiv\"><pre><a href=\"#L-1\">1</a>\n<a href=\"#L-2\">2</a></pre></div></td><td class=\"code\"><div class=\"highlight\"><pre><span></span><span id=\"L-1\"><a name=\"L-1\"></a>\\Session::flash(&#39;success&#39;, &quot;rows imported successfully.&quot;);\n</span><span id=\"L-2\"><a name=\"L-2\"></a>$request-&gt;session()-&gt;flash(&#39;danger&#39;, &quot;There were $num_errors errors.&quot;);\n</span></pre></div>\n</td></tr></table>", "tags": [{"absolute_url": "/public/tag/laravel/", "id": 20, "name": "laravel", "resource_uri": "/api/public/tag/20/", "snipts": "/api/public/snipt/?tag=20"}], "title": "Flash Message", "user": {"absolute_url": "/jbmckee/", "email_md5": "f4da96308b6db1b0b19738a7c105d3da", "id": 1, "resource_uri": "/api/public/user/1/", "snipts": "/api/public/snipt/?user=1", "snipts_count": 72, "username": "jbmckee"}}