[英]Laravel 5.4 View not found
所以我正在通過laracast教程系列學習laravel 5.4,但是我陷入了第10集。這是問題所在:
(1/1)找不到InvalidArgumentException視圖[posts.index]。
這是我的控制器:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Post;
class PostsController extends Controller
{
public function index()
{
return view('posts.index');
}
}
這是我的觀點:
<!DOCTYPE html>
<html>
<head>
<title>Posts</title>
</head>
<body>
<p>Simple test</p>
</body>
</html>
我已經嘗試了所有這些命令,但問題仍然存在:
php artisan cache:clear
php artisan config:clear
php artisan config:cache
這是我在Manjaro 17上的zip文件中的整個應用程序,使用docker上的homestead容器
您的視圖文件中有一個錯字。 您擁有的文件是index.balde.php
,應該是index.blade.php
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.