Home > Blockchain >  how to run xampp laravel code in visual studio 2022
how to run xampp laravel code in visual studio 2022

Time:05-10

Can anyone help me how can i run php Laravel xampp through create code in visual studio 2022.

i tried but it's showing me error like this.

Error if i run php existing code in visual studio

CodePudding user response:

go to in your project public folder and copy the index.php after that you need to paste this on your project root folder .

edit your index.php which have been in root folder.

require DIR.'/../vendor/autoload.php'; replce to require DIR.'/vendor/autoload.php';

$app = require_once DIR.'/bootstrap/app.php'; replce to $app = require_once DIR.'/bootstrap/app.php';

paste index.php in root folder

and after that project will be worked in visual studio 2022.

  • Related