Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Type error: Argument 1 passed to IlluminateDatabaseGrammar::parameterize()

 Error:Type error: Argument 1 passed to IlluminateDatabaseGrammar::parameterize()
 $not->addNot([$P->u_id],'Hold', 6, '0');
 
 Solve: Remove this [] from first parameter.
 $not->addNot($P->u_id,'Hold', 6, '0');
Comment

Argument 1 passed to IlluminateDatabaseGrammar::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
Comment

PREVIOUS NEXT
Code Example
Php :: General errorstring fetchAll() php 
Php :: basic syntax 
Php :: Convert backslash characters PHP 
Php :: TypeError IlluminateAuthSessionGuard::login(): Argument #1 ($user) must be of type IlluminateContractsAuthAuthenticatable 
Php :: object initialization 
Php :: php ajax registration form validation 
Php :: wordpress codex get post type woocommerce products 
Php :: direct your index.php to your site page 
Php :: laravel many to many relationship with pivot table 
Php :: add variables to line in laravel notification 
Php :: wp css deregister 
Php :: php exponential equation 
Php :: laravel many to many 
Php :: was loaded over https, but requested an insecure xmlhttprequest endpoint laravel 
Php :: The video failed to upload video in laravel in cpanel 
Php :: PHP Example - AJAX Poll 
Php :: PHP include causes white space at the top of the page 
Php :: php array cartesian product 
Php :: codeigniter query Profiling 
Php :: fuelphp authentication 
Php :: Reference — What does this symbol mean in PHP? 
Php :: bar chart in js,php prt 1 
Php :: Comment supprimer les éléments liés à WordPress oEmbed 
Php :: string replace in php 
Php :: laravel task scheduler error 
Php :: Route::any 
Php :: php refresh_ttl 
Php :: file viewer codeigniter 
Php :: how to validate multi image upload in laravel 
Php :: wordpress get_permalink not working 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =