Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Pain12's avatar

Deploying Laravel error

Hey guys, I tried to deploy my project to shared hosting. What I did is this:

I. copied my project accept for the public folder to a folder called familyshare
II. copied the public folder to folder called httpdocs which is where my domain is linked to.
III. changed in the index.php in the now httpdocs folder the lines to
/*require __DIR__.'/../vendor/autoload.php';*/
require __DIR__.'/../familyshare/vendor/autoload.php';

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/
/*$app = require_once __DIR__.'/../bootstrap/app.php';*/
$app = require_once __DIR__.'/../familyshare/bootstrap/app.php';

Now if I try to open the website I get the this error

View [pages.index] not found.

So somehow it is still not linked correctly? You can visit the site http://family-share.de/ to see the error.

Hope someone can help =D

0 likes
1 reply
Pain12's avatar
Pain12
OP
Best Answer
Level 1

Nvm. Worked with SSH. Dunno where the problem was but works fine now.

Please or to participate in this conversation.