I am using Laravel 5.4. I ran the make:auth command to scaffold out my auth controllers and views. I can register a new account without issue as it is showing up in my database. However when I try to login, the login page simply refreshes without any errors being thrown. In the login controller I have the red…
Apache / PHP error_log location in Docker
My PHP script has an error. For example, this shows this on the screen: Warning: require(/var/www/foo.php): failed to open stream: Where can I find this in the logs? I tried docker logs containerName, but it only shows access logs. E.g., 192.168.2.1 – – [17/Mar/2019:10:00:00 +0000] “GET / HT…
SSL certificate problem: unable to get issuer certificate
I’m currently testing an API on a website with a certificate by executing a php script that uses curl, in command line on my local windows machine. But the script never manages to reach the server. I …
Laravel 5.7: A facade root has not been set
I’m trying to get sitewide global settings from the database and use those settings in my controllers. In order to do this I’ve created a custom global.php file under config directory. Defined key=>…
composer global require laravel/installer
I’ve tried the first commands from the Laravel documentation composer global require laravel/installer I got error Changed current directory to /Users/bheng/.composer …
Show post comments with relationship – Laravel
Hi I am new to Laravel and I and trying to create a relationship bewteen my posts and post comments. I want to show all comments on a post with the same post_id as the posts id. I think it should …
Check if file is locked by concurrent process
I have a process that writes a file using file_put_contents(): file_put_contents ( $file, $data, LOCK_EX ); I have added the LOCK_EX parameter to prevent concurrent processes from writing to the …
Guzzle getContents()->getBody() – Second calls return empty string
I’m calling an API via Guzzle. My json test (outputted from “1”) is But, in code “2” I have an empty string and in code “3” (output from “checkError” method) I have null. If I comment out the checkError method, I would expect another time same json in frag…
why cannot I delete my image entity using VichUploader?
I work with Symfony 4 and Doctrine And i’m using VichUploader to manage my images. I create an entity image and when I use this entity to add new images it works like a charm but when I want to delete …
SQL statement stores all results in first item of array
I am running a select statement in which it brings back multiple items of the field ‘task_name’ from records that contain a matching ‘username’ field to a PHP variable above called ‘$user_log’. $…