Solution:
Try this
<?php // boot laravel require __DIR__ .'/../../vendor/autoload.php'; $laravel_app = require __DIR__ .'/../../bootstrap/start.php'; $laravel_app->boot();
SeeĀ this article for the solution that helped me