我有一個blade.php文件,我可以去我的網頁瀏覽器。但是,當我在我的Web瀏覽器中查看文件時,我發現屏幕是空白的,儘管blade.php文件應該顯示文本。laravel blade文件顯示空白屏幕
這裏是blade.php文件
<!DOCTYPE html>
<html>
<head>
<title>Laravel</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
padding: 0;
width: 100%;
display: table;
font-weight: 100;
font-family: 'Lato';
}
.container {
text-align: center;
display: table-cell;
vertical-align: middle;
}
.content {
text-align: center;
display: inline-block;
}
.title {
font-size: 96px;
}
</style>
</head>
<body>
<div class="container">
<div class="content">
<div class="title"> another test </div>
</div>
</div>
</body>
</html>
既然我能去的皮克在瀏覽器中,我不認爲它是與控制器或routes.php文件文件中的錯誤。我有另一個blade.php文件,它具有相同的代碼,並且當我在Web瀏覽器中進入它時顯示一些內容。
以下是blade.php文件無法運行的文件路徑。 Laravel /資源/視圖/頁/ manualsignup.blade.php
下面是blade.php文件正在 Laravel /資源/視圖/頁/ test.blade.php
文件路徑我已經嘗試做php工匠的觀點:明確,但它沒有解決問題。
我沒有收到任何錯誤,所以盡我所知,日誌文件不會有任何這種情況。以下是日誌文件中的一些最新日誌,但我不認爲它們在這裏相關,我認爲它們來自我修復的以前的錯誤。
[2016-02-04 16:39:29] local.ERROR:InvalidArgumentException:View [about]找不到。在/home/vagrant/Code/Laravel/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137 堆棧跟蹤:
#0 /home/vagrant/Code/Laravel/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php(79): Illuminate\View\FileViewFinder->findInPaths('about', Array)
#1 /home/vagrant/Code/Laravel/vendor/laravel/framework/src/Illuminate/View/Factory.php(151): Illuminate\View\FileViewFinder->find('about')
#2 /home/vagrant/Code/Laravel/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php(737): Illuminate\View\Factory->make('about', Array, Array)
#3 /home/vagrant/Code/Laravel/app/Http/routes.php(21): view('about')
#4 [internal function]: App\Providers\RouteServiceProvider->{closure}()
你的日誌會告訴你錯誤是什麼。你檢查過他們嗎? – James