Search code examples
phplaravellaravel-5shared-hosting

Error in Laravel project installation on 000webhost.com


I am new to installation of Laravel project. I followed the complete answer https://stackoverflow.com/a/50917497/10525759. The website starting opening but these are not the results which I require. The websites completely unorganized and images are also not displaying.

I an not able to find what's the problem with my website.

I am using 000webhost.com free hosting and inquired that this satisfy my project details.

I have php version 7.2. I have configured the database details correctly still getting the error. What's going wrong with my project?

Here is my .env file

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:DVx0fmV7VHOPu2WX2GqZRfasCPDyzP6ZGveIsOBZXGQ=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=id8541614_ecommerce
DB_USERNAME=id8541614_ecommerce
DB_PASSWORD=password

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=sendmail
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=YOUR_EMAIL_ID
MAIL_PASSWORD=UOUR_EMAIL_PASSOWRD
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

Solution

  • It took me a while to get the solution but it was very simple, I just had to copy my resources folder to public_html.