我正在使用Laravel教程,我在NoticesController.php中使用了这个方法
public function confirm(PrepareNoticeRequest $request, Guard $auth)
{
$data = $request->all() + [
'name' => $auth->user()->name,
'email' => $auth->user()->email,
];
$template = view()->file(app_path('Http/Templates/dmca.blade.php'), $data);
return $template;
}
在我的route.php
中Route::get('notices/create/confirm', 'NoticesController@confirm');
我在app / Http / Templates / dmca.blade.php中有一个文件 但是我收到了这个错误
FileNotFoundException in Filesystem.php line 36:
File does not exist at path /home/vagrant/Projects/dmca-app/app/Http/Templates/dmca.blade.php
有什么建议吗?