require __DIR__.'/../laravel/boostrap/autoload.php'; $app = require_once __DIR__.'/../laravel/boostrap/app.php'; // set the public path to this directory $app–>bind(‘path.public’,function(){ return__DIR__; });