Skip to content

Tag: php

Laravel PUT relationship

Fiddling with Laravel and coming from Symfony, I’m trying to replicate some code. I’m trying to PUT a Suggestion model (overwritting anything, even relationships) and wanted to know the proper way to overwrite the model. Since tags attribute in fillable doesn’t exist, I certainly get an erro…

Why is my prepared statement causing this syntax error?

When I try to execute a query like this: I get this error: Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘ amount = &#8216…

Laravel 8 job Cannot pass parameter 1 by reference error

I’m working with a Laravel 8 project and have created a Job that gets processed. I’ve got several functions to extract functionality but am getting the following error: Cannot pass parameter 1 by reference The trace is initially saying on line 65, which would be ‘title’ => $page-&gt…

I can’t upgrade nginx PHP version to latest on ubuntu 16

I have tried to upgrade the PHP version. but I just get errors. I tried this tutorial. but I get this error. How can I solve this problem? I have tried my tutorial. but just get same error like this. Answer As stated in the ppa description: Only Supported Versions of PHP (http://php.net/supported-versions.php…

Saving items by multiple users in database

What am doing wrong ? this might be the simple solution to all experts here, but i have tried all the ways and i dont know where is my mistake ? The idea is to add and items through my page to my database and then i can check them as todo list or to buy list. As well is