Here’s the error upon opening php file using Docker Desktop:
0.1.2
Fatal error: Uncaught Error: Call to undefined function get_json_data() in C:laragonwwwmyprojectpublicindex.php:37 Stack trace: #0 C:laragonwwwmyprojectpublicindex.php(40): get_channels() #1 {main} thrown in C:laragonwwwmyprojectpublicindex.php on line 37
Local link is: localhost
I have the ff. extensions installed on VSCode:
PHP Debug
PHP Intelephense
PHP Extension Pack
PHP IntelliSense
2
Answers
It seems that the edit in
settings.JSON
insideVS Code
had this wrong path:I had to
delete
the project andclone
it again and now it works fine. Path shows:Thank you!
use
json_decode
instead ofget_json_data