将Laravel-snappy html运行到pdf时出错

时间:2017-08-29 14:04:50

标签: php laravel laravel-snappy

我使用官方文档安装了laravel-snappy但是当我尝试运行我的应用程序时出现此错误。

  

致命错误:未捕获错误:在D:\ php \ myapp \ vendor \ barryvdh \ laravel-snappy \ src \ LumenServiceProvider.php中调用未定义的方法Illuminate \ Foundation \ Application :: configure():21堆栈跟踪:# 0 D:\ php \ myapp \ vendor \ laravel \ framework \ src \ Illuminate \ Foundation \ Application.php(574):Barryvdh \ Snappy \ LumenServiceProvider-> register()#1 D:\ php \ myapp \ bootstrap \ app .php(35):Illuminate \ Foundation \ Application-> register(Object(Barryvdh \ Snappy \ LumenServiceProvider))#2 D:\ php \ myapp \ public \ index.php(36):require_once('D:\ php \ myapp \ bo ...')#3 D:\ php \ myapp \ server.php(21):require_once('D:\ php \ myapp \ pu ...')D中抛出#4 {main}:第21行\ php \ myapp \ vendor \ barryvdh \ laravel-snappy \ src \ LumenServiceProvider.php

另一个: 当我使用锚标签路由下载

的下载时

<a href="{{ route('generate-pdf',['download'=>'pdf']) }}">Download PDF</a>

转到

http://localhost:8000/%7B%7B%20route('generate-pdf',['download'=%3E'pdf'])%20%7D%7D

为什么会那样?

为什么我会收到此错误,我该如何解决?提前致谢。

0 个答案:

没有答案