Skip to content

A free open source IT asset/license management system

Set the public path for users who can’t use public as a directory (shared hosting)

snipeeee64d550932
diff --git a/public/index.php b/public/index.php
index c2d9ddf004..01ea454daa 100644
--- a/public/index.php
+++ b/public/index.php
@@ -36,6 +36,11 @@ include '../c3.php';
$app = require_once __DIR__.'/../bootstrap/app.php';
+// set the public path to this directory
+$app->bind('path.public', function() {
+ return __DIR__;
+});
+
/*
|--------------------------------------------------------------------------
| Run The Application