Argument 1 passed to Illuminate\Database\Grammar::parameterize()
Your tags input is an array of values, so you cannot just store a php array
into a database column.
If your tags is a varchar in your database, then try to implode the elements
into a string:
$lesson->tags= implode(', ', $request->input('tags'));
This will store it as a comma separated list of values: programming, tech ..
so on, whatever your tags are.
reference:
https://stackoverflow.com/questions/57933670/how-to-fix-error-argument-1-passed-to-illuminate-database-grammarparameterize Error:Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()
$not->addNot([$P->u_id],'Hold', 6, '0');
Solve: Remove this [] from first parameter.
$not->addNot($P->u_id,'Hold', 6, '0');
Also in PHP:
- array reverse array php
- apache php e_warnings e_notice off
- blob image to base64 php
- autoload php multiple spl_autoload_register
- easy admin bunfle symfony modify login page
- _______ is used to execute laravel project
- check for str in str php
- $db = new PDO
- debugbar:clear in laravel
- check where key in associative array have a value
- $errors show this error in laravel
- Warning: get_browser(): browscap ini directive not set in
- echo errors of php
- date format Y-m-d H:i:s and time zone in php
- excerpt custom post type
- "Allowed memory size of 134217728 bytes exhausted (tried to allocate 56627200 bytes)" in wamp
- convert to int php
- convert small to capital in php
- description seed database laravel
- convert array to object php
- clean redis cache
- aadd day in date php
- database seeder insert laravel
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767