-1

I tired to push my Laravel app to hosting. Soo I changed all content in .env for DB and now I get this error:

ErrorException (E_ERROR)
   View [layout.layout] not found. (View: /home/ramchca/ftp/resources/views/Pages/index.blade.php)
    Previous exceptions

   View [layout.layout] not found. (0)

My question is. Why it doesn't work. On localhost all is working fine.

2 Answers2

0

Okey I know what I did wrong. My problem was lowercase at here

@extends('layout.layout')

folder was Layout.

  • 1
    Yeah, Linux is case-sensitive. Be careful - you'll have similar issues with things like `use App\User` versus `App\user`, so you'll want to make sure your case matches all over. – ceejayoz Oct 25 '18 at 21:36
-1

Make .htaccess in your laravel directory.

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

I'm not sure, but you can try.