laravel 5 - Issues creating new record with Model::create, Grammar::parameterize() must be of the type array, integer given, -
i have problems create new record of model llista (in english, list), think maybe structure of model::create isn't correct or field of model causing error.
so have listcontroller this:
llistescontroller.php
translations: (nom_llista equals name_list , llista equals list)
public function store(request $request) { $email = $request->only('email'); $nom_llista = $request->only('nom_llista'); $user = user::where('email', '=',$email)->first(); $userid = $user->id; $llista = llista::create(array( 'nom_llista' => $nom_llista, 'user_id' => $userid) ); }
$email
, $nom_llista
, $user
, $userid
checked , have correct values, on create fails.
error throw laravel doing post request:
<!doctype html> <html> <head> <meta name="robots" content="noindex,nofollow" /> <style> /* copyright (c) 2010, yahoo! inc. rights reserved. code licensed under bsd license: http://developer.yahoo.com/yui/license.html */ html{color:#000;background:#fff;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} html { background: #eee; padding: 10px } img { border: 0; } #sf-resetcontent { width:970px; margin:0 auto; } .sf-reset { font: 11px verdana, arial, sans-serif; color: #333 } .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; } .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; } .sf-reset .clear_fix { display:inline-block; } .sf-reset * html .clear_fix { height:1%; } .sf-reset .clear_fix { display:block; } .sf-reset, .sf-reset .block { margin: auto } .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; } .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px } .sf-reset strong { font-weight:bold; } .sf-reset { color:#6c6159; cursor: default; } .sf-reset img { border:none; } .sf-reset a:hover { text-decoration:underline; } .sf-reset em { font-style:italic; } .sf-reset h1, .sf-reset h2 { font: 20px georgia, "times new roman", times, serif } .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; } .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; } .sf-reset .exception_message { margin-left: 3em; display: block; } .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; } .sf-reset .block { background-color:#ffffff; padding:10px 28px; margin-bottom:20px; -webkit-border-bottom-right-radius: 16px; -webkit-border-bottom-left-radius: 16px; -moz-border-radius-bottomright: 16px; -moz-border-radius-bottomleft: 16px; border-bottom-right-radius: 16px; border-bottom-left-radius: 16px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; border-left:1px solid #ccc; } .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px; -webkit-border-top-left-radius: 16px; -webkit-border-top-right-radius: 16px; -moz-border-radius-topleft: 16px; -moz-border-radius-topright: 16px; border-top-left-radius: 16px; border-top-right-radius: 16px; border-top:1px solid #ccc; border-right:1px solid #ccc; border-left:1px solid #ccc; overflow: hidden; word-wrap: break-word; } .sf-reset { background:none; color:#868686; text-decoration:none; } .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; } .sf-reset ol { padding: 10px 0; } .sf-reset h1 { background-color:#ffffff; padding: 15px 28px; margin-bottom: 20px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; border: 1px solid #ccc; } </style> </head> <body> <div id="sf-resetcontent" class="sf-reset"> <h1>whoops, looks went wrong.</h1> <h2 class="block_exception clear_fix"> <span class="exception_counter">1/1</span> <span class="exception_title"><abbr title="errorexception">errorexception</abbr> in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\grammar.php line 118" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">grammar.php line 118</a>:</span> <span class="exception_message">argument 1 passed illuminate\database\grammar::parameterize() must of type array, integer given, called in c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\query\grammars\grammar.php on line 708 , defined</span> </h2> <div class="block"> <ol class="traces list_exception"> <li> in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\grammar.php line 118" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">grammar.php line 118</a></li> <li>at <abbr title="illuminate\foundation\bootstrap\handleexceptions">handleexceptions</abbr>->handleerror('4096', 'argument 1 passed illuminate\database\grammar::parameterize() must of type array, integer given, called in c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\query\grammars\grammar.php on line 708 , defined', 'c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\grammar.php', '118', <em>array</em>('this' => <em>object</em>(<abbr title="illuminate\database\query\grammars\mysqlgrammar">mysqlgrammar</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\grammar.php line 118" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">grammar.php line 118</a></li> <li>at <abbr title="illuminate\database\grammar">grammar</abbr>->parameterize('2') in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\query\grammars\grammar.php line 708" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">grammar.php line 708</a></li> <li>at <abbr title="illuminate\database\query\grammars\grammar">grammar</abbr>->compileinsert(<em>object</em>(<abbr title="illuminate\database\query\builder">builder</abbr>), <em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40')) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\query\grammars\grammar.php line 726" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">grammar.php line 726</a></li> <li>at <abbr title="illuminate\database\query\grammars\grammar">grammar</abbr>->compileinsertgetid(<em>object</em>(<abbr title="illuminate\database\query\builder">builder</abbr>), <em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40'), 'id') in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\query\builder.php line 2014" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">builder.php line 2014</a></li> <li>at <abbr title="illuminate\database\query\builder">builder</abbr>->insertgetid(<em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40'), 'id')</li> <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="illuminate\database\query\builder">builder</abbr>), 'insertgetid'), <em>array</em>(<em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40'), 'id')) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\eloquent\builder.php line 1385" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">builder.php line 1385</a></li> <li>at <abbr title="illuminate\database\eloquent\builder">builder</abbr>->__call('insertgetid', <em>array</em>(<em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40'), 'id')) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\eloquent\model.php line 1621" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">model.php line 1621</a></li> <li>at <abbr title="illuminate\database\eloquent\builder">builder</abbr>->insertgetid(<em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40'), 'id') in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\eloquent\model.php line 1621" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">model.php line 1621</a></li> <li>at <abbr title="illuminate\database\eloquent\model">model</abbr>->insertandsetid(<em>object</em>(<abbr title="illuminate\database\eloquent\builder">builder</abbr>), <em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2', 'updated_at' => '2016-06-10 23:52:40', 'created_at' => '2016-06-10 23:52:40')) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\eloquent\model.php line 1590" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">model.php line 1590</a></li> <li>at <abbr title="illuminate\database\eloquent\model">model</abbr>->performinsert(<em>object</em>(<abbr title="illuminate\database\eloquent\builder">builder</abbr>), <em>array</em>()) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\eloquent\model.php line 1481" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">model.php line 1481</a></li> <li>at <abbr title="illuminate\database\eloquent\model">model</abbr>->save() in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\database\eloquent\model.php line 571" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">model.php line 571</a></li> <li>at <abbr title="illuminate\database\eloquent\model">model</abbr>::create(<em>array</em>('nom_llista' => <em>array</em>('nom_llista' => 'prova'), 'user_id' => '2')) in <a title="c:\xampp\htdocs\webservice\app\http\controllers\llistescontroller.php line 54" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">llistescontroller.php line 54</a></li> <li>at <abbr title="app\http\controllers\llistescontroller">llistescontroller</abbr>->store(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="app\http\controllers\llistescontroller">llistescontroller</abbr>), 'store'), <em>array</em>(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\controller.php line 80" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">controller.php line 80</a></li> <li>at <abbr title="illuminate\routing\controller">controller</abbr>->callaction('store', <em>array</em>(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\controllerdispatcher.php line 146" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">controllerdispatcher.php line 146</a></li> <li>at <abbr title="illuminate\routing\controllerdispatcher">controllerdispatcher</abbr>->call(<em>object</em>(<abbr title="app\http\controllers\llistescontroller">llistescontroller</abbr>), <em>object</em>(<abbr title="illuminate\routing\route">route</abbr>), 'store') in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\controllerdispatcher.php line 94" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">controllerdispatcher.php line 94</a></li> <li>at <abbr title="illuminate\routing\controllerdispatcher">controllerdispatcher</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\pipeline.php line 52" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 52</a></li> <li>at <abbr title="illuminate\routing\pipeline">pipeline</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\pipeline\pipeline.php line 103" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 103</a></li> <li>at <abbr title="illuminate\pipeline\pipeline">pipeline</abbr>->then(<em>object</em>(<abbr title="closure">closure</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\controllerdispatcher.php line 96" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">controllerdispatcher.php line 96</a></li> <li>at <abbr title="illuminate\routing\controllerdispatcher">controllerdispatcher</abbr>->callwithinstack(<em>object</em>(<abbr title="app\http\controllers\llistescontroller">llistescontroller</abbr>), <em>object</em>(<abbr title="illuminate\routing\route">route</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>), 'store') in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\controllerdispatcher.php line 54" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">controllerdispatcher.php line 54</a></li> <li>at <abbr title="illuminate\routing\controllerdispatcher">controllerdispatcher</abbr>->dispatch(<em>object</em>(<abbr title="illuminate\routing\route">route</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>), 'app\http\controllers\llistescontroller', 'store') in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\route.php line 174" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">route.php line 174</a></li> <li>at <abbr title="illuminate\routing\route">route</abbr>->runcontroller(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\route.php line 140" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">route.php line 140</a></li> <li>at <abbr title="illuminate\routing\route">route</abbr>->run(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\router.php line 724" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">router.php line 724</a></li> <li>at <abbr title="illuminate\routing\router">router</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\pipeline.php line 52" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 52</a></li> <li>at <abbr title="illuminate\routing\pipeline">pipeline</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\view\middleware\shareerrorsfromsession.php line 49" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">shareerrorsfromsession.php line 49</a></li> <li>at <abbr title="illuminate\view\middleware\shareerrorsfromsession">shareerrorsfromsession</abbr>->handle(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="illuminate\view\middleware\shareerrorsfromsession">shareerrorsfromsession</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\pipeline\pipeline.php line 136" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 136</a></li> <li>at <abbr title="illuminate\pipeline\pipeline">pipeline</abbr>->illuminate\pipeline\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\pipeline.php line 32" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 32</a></li> <li>at <abbr title="illuminate\routing\pipeline">pipeline</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\session\middleware\startsession.php line 62" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">startsession.php line 62</a></li> <li>at <abbr title="illuminate\session\middleware\startsession">startsession</abbr>->handle(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="illuminate\session\middleware\startsession">startsession</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\pipeline\pipeline.php line 136" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 136</a></li> <li>at <abbr title="illuminate\pipeline\pipeline">pipeline</abbr>->illuminate\pipeline\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\pipeline.php line 32" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 32</a></li> <li>at <abbr title="illuminate\routing\pipeline">pipeline</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\cookie\middleware\addqueuedcookiestoresponse.php line 37" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">addqueuedcookiestoresponse.php line 37</a></li> <li>at <abbr title="illuminate\cookie\middleware\addqueuedcookiestoresponse">addqueuedcookiestoresponse</abbr>->handle(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="illuminate\cookie\middleware\addqueuedcookiestoresponse">addqueuedcookiestoresponse</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\pipeline\pipeline.php line 136" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 136</a></li> <li>at <abbr title="illuminate\pipeline\pipeline">pipeline</abbr>->illuminate\pipeline\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\pipeline.php line 32" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 32</a></li> <li>at <abbr title="illuminate\routing\pipeline">pipeline</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\cookie\middleware\encryptcookies.php line 59" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">encryptcookies.php line 59</a></li> <li>at <abbr title="illuminate\cookie\middleware\encryptcookies">encryptcookies</abbr>->handle(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func_array(<em>array</em>(<em>object</em>(<abbr title="app\http\middleware\encryptcookies">encryptcookies</abbr>), 'handle'), <em>array</em>(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>), <em>object</em>(<abbr title="closure">closure</abbr>))) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\pipeline\pipeline.php line 136" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 136</a></li> <li>at <abbr title="illuminate\pipeline\pipeline">pipeline</abbr>->illuminate\pipeline\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\pipeline.php line 32" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 32</a></li> <li>at <abbr title="illuminate\routing\pipeline">pipeline</abbr>->illuminate\routing\{closure}(<em>object</em>(<abbr title="illuminate\http\request">request</abbr>))</li> <li>at <abbr title=""></abbr>call_user_func(<em>object</em>(<abbr title="closure">closure</abbr>), <em>object</em>(<abbr title="illuminate\http\request">request</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\pipeline\pipeline.php line 103" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">pipeline.php line 103</a></li> <li>at <abbr title="illuminate\pipeline\pipeline">pipeline</abbr>->then(<em>object</em>(<abbr title="closure">closure</abbr>)) in <a title="c:\xampp\htdocs\webservice\vendor\laravel\framework\src\illuminate\routing\router.php line 726" ondblclick="var f=this.innerhtml;this.innerhtml=this.title;this.title=f;">router.php line 726</a></li> </ol> </div> </div> </body> </html>
route:
route::resource('crearllista', 'llistescontroller@store', ['only' => [ 'index', 'store' ]]);
you passing nested array create
function. try this
$llista = llista::create(array( 'nom_llista' => $nom_llista['nom_llista'], 'user_id' => $userid ));
Comments
Post a Comment