Sami
09/09/2021, 10:38 AMphp
Element::create([
'en' => ['title' => 'Water'],
'de' => ['title' => 'Wasser'],
]);
gives me Argument 1 passed to Illuminate\Database\Grammar::parameterize() must be of the type array, string given
it's trying to put updated_at
string value to the parametrize
function
Illuminate\Database\Query\Grammars\Grammar::Illuminate\Database\Query\Grammars\{closure}("2021-09-09 10:31:19", "updated_at")
When I dump the arguments of parametrize
, I get this, which tells me that update_at
is not an array and it's still being put to that function
php
array:3 [
"de" => array:1 [
"title" => "Wasser"
]
"updated_at" => "2021-09-09 10:33:44"
"created_at" => "2021-09-09 10:33:44"
]
Mho
09/09/2021, 10:49 AMsapta34
09/09/2021, 11:07 AMifox
09/09/2021, 11:17 AMsapta34
09/09/2021, 11:22 AMifox
09/09/2021, 11:39 AMafatmustafa
09/09/2021, 12:07 PMifox
09/09/2021, 12:08 PMafatmustafa
09/09/2021, 12:08 PMifox
09/09/2021, 12:08 PMafatmustafa
09/09/2021, 12:09 PMBlade
09/09/2021, 1:53 PMpboivin
09/09/2021, 2:17 PMASCII//IGNORE//TRANSLIT
?Blade
09/09/2021, 2:19 PMChronos
09/09/2021, 4:51 PMifox
09/09/2021, 7:03 PMKyleAF
09/10/2021, 12:51 AMKyleAF
09/10/2021, 12:51 AMifox
09/10/2021, 12:52 AMKyleAF
09/10/2021, 12:54 AMKyleAF
09/10/2021, 12:54 AMifox
09/10/2021, 12:55 AMKyleAF
09/10/2021, 12:56 AMifox
09/10/2021, 12:56 AMKyleAF
09/10/2021, 12:58 AMifox
09/10/2021, 1:01 AMartisan vendor:publish
at some point that published all Twill views, which is not really recommended. one last point: if you do not have any custom Vue block/component to get into Twill, you never have to run twill:build
, as twill:update
will copy the latest build you need for you (much faster and makes sure you don't build with different dependencies)KyleAF
09/10/2021, 1:03 AMDefenestrația
09/10/2021, 4:20 AMSami
09/10/2021, 8:01 AMifox
09/10/2021, 8:04 AM