Filesystem.php Laravel 5中的FileNotFoundException

时间:2015-05-18 00:13:07

标签: php laravel-5

我正在使用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

有什么建议吗?

0 个答案:

没有答案