public function __construct() { $this->setUrl(env('APP_URL')); $this->pipe(Middleware::formatNegotiator()); $this->pipe(Middleware::whoops()); $this->source(new StaticFiles('build/**/*'))->build(false); $this->source(new StaticFiles('source/img/**/*', '/img/**/*')); $plates = new Engine('source/templates'); $plates->addData(['app' => $this]); $this->source(new YamlFiles('source/data/*.yml'))->templates($plates); }