html - Bootstrap date-picker not being set -


i'm using laravel's illuminate date forum.

<div class="form-group">     {!! form::label('published_at', 'publish on:') !!}     {!! form::input('date', 'published_at') !!} </div> 

my page source this:

<div class="form-group">     <label for="published_at">publish on:</label>     <input name="published_at" type="date" id="published_at"> </div> 

i'm picking date through eloquent so:

public function setpublishedatattribute($date){     $this->attributes['published_at'] = carbon::parse($date); } 

for reason, changing date not changing, picking current date. laravel or bootstrap issue?

edit tried debugging form. http response:

remote address:[::1]:8000 request url:http://localhost:8000/articles request method:post status code:200 ok response headers view source cache-control:no-store, no-cache, must-revalidate cache-control:post-check=0, pre-check=0 connection:close content-type:text/html expires:sat, 26 jul 1997 05:00:00 gmt host:localhost:8000 last-modified:mon, 17 aug 2015 04:28:25 gmt pragma:no-cache x-powered-by:php/5.5.27 request headers view source accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 accept-encoding:gzip, deflate accept-language:en-us,en;q=0.8 cache-control:max-age=0 connection:keep-alive content-length:101 content-type:application/x-www-form-urlencoded cookie:[removed me] host:localhost:8000 origin:http://localhost:8000 referer:http://localhost:8000/articles/create upgrade-insecure-requests:1 user-agent:mozilla/5.0 (macintosh; intel mac os x 10_9_5) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.130 safari/537.36 form data view source view url encoded _token:[removed me] title:date3 body:asdfasdfasdf published_at:2015-08-26 

not sure how debug script preview. have bootstrap locally, not cdn.

<script> sfdump = window.sfdump || (function (doc) { var refstyle = doc.createelement('style'), rxesc = /([.*+?^${}()|\[\]\/\\])/g, idrx = /\bsf-dump-\d+-ref[012]\w+\b/, keyhint = 0 <= navigator.platform.touppercase().indexof('mac') ? 'cmd' : 'ctrl', addeventlistener = function (e, n, cb) { e.addeventlistener(n, cb, false); }; doc.documentelement.firstchild.appendchild(refstyle); if (!doc.addeventlistener) { addeventlistener = function (element, eventname, callback) { element.attachevent('on' + eventname, function (e) { e.preventdefault = function () {e.returnvalue = false;}; e.target = e.srcelement; callback(e); }); }; } function toggle(a, recursive) { var s = a.nextsibling || {}, oldclass = s.classname, arrow, newclass; if ('sf-dump-compact' == oldclass) { arrow = '&#9660;'; newclass = 'sf-dump-expanded'; } else if ('sf-dump-expanded' == oldclass) { arrow = '&#9654;'; newclass = 'sf-dump-compact'; } else { return false; } a.lastchild.innerhtml = arrow; s.classname = newclass; if (recursive) { try { = s.queryselectorall('.'+oldclass); (s = 0; s < a.length; ++s) { if (a[s].classname !== newclass) { a[s].classname = newclass; a[s].previoussibling.lastchild.innerhtml = arrow; } } } catch (e) { } } return true; }; return function (root) { root = doc.getelementbyid(root); function a(e, f) { addeventlistener(root, e, function (e) { if ('a' == e.target.tagname) { f(e.target, e); } else if ('a' == e.target.parentnode.tagname) { f(e.target.parentnode, e); } }); }; function isctrlkey(e) { return e.ctrlkey || e.metakey; } addeventlistener(root, 'mouseover', function (e) { if ('' != refstyle.innerhtml) { refstyle.innerhtml = ''; } }); a('mouseover', function (a) { if (a = idrx.exec(a.classname)) { try { refstyle.innerhtml = 'pre.sf-dump .'+a[0]+'{background-color: #b729d9; color: #fff !important; border-radius: 2px}'; } catch (e) { } } }); a('click', function (a, e) { if (/\bsf-dump-toggle\b/.test(a.classname)) { e.preventdefault(); if (!toggle(a, isctrlkey(e))) { var r = doc.getelementbyid(a.getattribute('href').substr(1)), s = r.previoussibling, f = r.parentnode, t = a.parentnode; t.replacechild(r, a); f.replacechild(a, s); t.insertbefore(s, r); f = f.firstchild.nodevalue.match(indentrx); t = t.firstchild.nodevalue.match(indentrx); if (f && t && f[0] !== t[0]) { r.innerhtml = r.innerhtml.replace(new regexp('^'+f[0].replace(rxesc, '\\$1'), 'mg'), t[0]); } if ('sf-dump-compact' == r.classname) { toggle(s, isctrlkey(e)); } } if (doc.getselection) { try { doc.getselection().removeallranges(); } catch (e) { doc.getselection().empty(); } } else { doc.selection.empty(); } } }); var indentrx = new regexp('^('+(root.getattribute('data-indent-pad') || ' ').replace(rxesc, '\\$1')+')+', 'm'), elt = root.getelementsbytagname('a'), len = elt.length, = 0, t = []; while (i < len) t.push(elt[i++]); elt = root.getelementsbytagname('samp'); len = elt.length; = 0; while (i < len) t.push(elt[i++]); root = t; len = t.length; = t = 0; while (i < len) { elt = root[i]; if ("samp" == elt.tagname) { elt.classname = "sf-dump-expanded"; = elt.previoussibling || {}; if ('a' != a.tagname) { = doc.createelement('a'); a.classname = 'sf-dump-ref'; elt.parentnode.insertbefore(a, elt); } else { a.innerhtml += ' '; } a.title = (a.title ? a.title+'\n[' : '[')+keyhint+'+click] expand children'; a.innerhtml += '<span>&#9660;</span>'; a.classname += ' sf-dump-toggle'; if ('sf-dump' != elt.parentnode.classname) { toggle(a); } } else if ("sf-dump-ref" == elt.classname && (a = elt.getattribute('href'))) { = a.substr(1); elt.classname += ' '+a; if (/[\[{]$/.test(elt.previoussibling.nodevalue)) { = != elt.nextsibling.id && doc.getelementbyid(a); try { t = a.nextsibling; elt.appendchild(a); t.parentnode.insertbefore(a, t); if (/^[@#]/.test(elt.innerhtml)) { elt.innerhtml += ' <span>&#9654;</span>'; } else { elt.innerhtml = '<span>&#9654;</span>'; elt.classname = 'sf-dump-ref'; } elt.classname += ' sf-dump-toggle'; } catch (e) { if ('&' == elt.innerhtml.charat(0)) { elt.innerhtml = '&#8230;'; elt.classname = 'sf-dump-ref'; } } } } ++i; } }; })(document); </script> <style> pre.sf-dump { display: block; white-space: pre; padding: 5px; } pre.sf-dump span { display: inline; } pre.sf-dump .sf-dump-compact { display: none; } pre.sf-dump abbr { text-decoration: none; border: none; cursor: help; } pre.sf-dump { text-decoration: none; cursor: pointer; border: 0; outline: none; }pre.sf-dump{background-color:#fff; color:#222; line-height:1.2em; font-weight:normal; font:12px monaco, consolas, monospace; word-wrap: break-word; white-space: pre-wrap; position:relative; z-index:100000}pre.sf-dump .sf-dump-num{color:#a71d5d}pre.sf-dump .sf-dump-const{color:#795da3}pre.sf-dump .sf-dump-str{color:#df5000}pre.sf-dump .sf-dump-cchr{color:#222}pre.sf-dump .sf-dump-note{color:#a71d5d}pre.sf-dump .sf-dump-ref{color:#a0a0a0}pre.sf-dump .sf-dump-public{color:#795da3}pre.sf-dump .sf-dump-protected{color:#795da3}pre.sf-dump .sf-dump-private{color:#795da3}pre.sf-dump .sf-dump-meta{color:#b729d9}pre.sf-dump .sf-dump-key{color:#df5000}pre.sf-dump .sf-dump-index{color:#a71d5d}</style><pre class=sf-dump id=sf-dump-1357969015 data-indent-pad="  "><abbr title="carbon\carbon" class=sf-dump-note>carbon</abbr> {<a class=sf-dump-ref>#144</a><samp>   +"<span class=sf-dump-public title="runtime added dynamic property">date</span>": "<span class=sf-dump-str title="26 characters">2015-08-17 04:28:25.000000</span>"   +"<span class=sf-dump-public title="runtime added dynamic property">timezone_type</span>": <span class=sf-dump-num>3</span>   +"<span class=sf-dump-public title="runtime added dynamic property">timezone</span>": "<span class=sf-dump-str title="3 characters">utc</span>" </samp>} </pre><script>sfdump("sf-dump-1357969015")</script> 


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -