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 :: how to include only post variable from another file php 
Php :: Installation request for pokemon-tcg/pokemon-tcg-sdk-php ^1.2 - satisfiable by pokemon-tcg/pokemon-tcg-sdk-php[1.2.0] 
Php :: app/View/Errors/missing_controller.ctp 
Php :: Date and time Asia karachi php 
Php :: Natural numbers from php 
Php :: PHP strtr — Translate characters or replace substrings 
Php :: php header deny 
Php :: protocals supported by php 
Php :: java script clear rectangle 
Php :: namespace not working php 
Php :: preg_replace rules for php 7.3 
Php :: how to payment credit card in codeigniter authorized.net 
Php :: sort names alphabetically php 
Php :: Inject interface and not concrete class 
Php :: jobs laravel 
Php :: How to prevent repeating the same option value of a selection in a php loop 
Php :: newrelic apache virtual hosts 
Php :: php imap before date subject 
Php :: remove public from laravel 
Php :: php expire session for 1 month 
Php :: wordpress add block from single.php 
Php :: same title 2 gigs are allowed in fiverr 
Php :: install php 5.5 ubuntu 20.05 
Php :: lista 
Php :: examples of invalid php variables 
Php :: symfony refresh endpoints 
Php :: add variables to line in laravel notification 
Php :: ci4+ connection code 
Php :: $_get in php not working 
Php :: auto complete order paid1 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =