我遇到了一个视图路由问题:
ErrorException in FileViewFinder.php line 137:
View [main] not found. (View: C:\xampp\htdocs\store\resources\views\currencies\index.blade.php)和
InvalidArgumentException in FileViewFinder.php line 137:
View [main] not found.我不知道为什么我会犯这个错误。
我想做的事:
我的路线:
Route::resource('currencies', 'CurrencyController');主计长:
public function index()
{
// create a variable and store all the posts in it from the database
$currencies = Currency::orderBy('id', 'asc')->paginate(5);
//$currencies = Currency::all();
// return a view and pass in the above variable
return view('currencies.index')->withCurrencies($currencies);
}我的意见(resources/ view /resources/index.blde.php):
@extends('main')
@section('title', '| Settings - Currencies')
@section('content')
@endsection有人能带我去正确的方向吗?提前谢谢!
发布于 2017-02-21 07:37:45
您正在尝试以视图main.blade.php作为页面的布局来显示页面。这就是@extends('main')所做的。
您的视图根目录中似乎不存在文件main.blade.php。创建此文件或编辑此视图中的链接。
https://stackoverflow.com/questions/42361225
复制相似问题