我刚刚在我的VPS服务器上安装了Linux CentOS软件。我已经上传了一个我已经购买的网络脚本......但错误日志已经开始向我显示此错误:
[Tue Oct 17 09:14:18.780598 2017] [:error] [pid 26891] [client IP:Port] PHP Fatal error:
Uncaught Error: Class 'JavaScript' not found in /var/www/html/app/Exceptions/Handler.php:65
Stack trace:
#0 [internal function]: App\\Exceptions\\Handler->__construct()
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(785): ReflectionClass->newInstanceArgs(Array)
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\\Container\\Container->build('App\\\\Exceptions\\\\...')
#3 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\\Container\\Container->resolve('App\\\\Exceptions\\\\...', Array)
#4 /var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(721): Illuminate\\Container\\Container->make('App\\\\Exceptions\\\\...', Array)
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(256): Illuminate\\Foundation\\Application->make('App\\\\Exceptions\\\\...', Array)
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\\Container in /var/www/html/app/Exceptions/Handler.php on line 65
Handler.php:
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use JavaScript;
use Illuminate\Support\Facades\URL;
use Illuminate\Validation\ValidationException;
use Prologue\Alerts\Facades\Alert;
use Illuminate\Session\TokenMismatchException;
use Symfony\Component\Debug\Exception\FlattenException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
.
.
.
public function __construct()
{
parent::__construct(app());
// Bind JS vars to view
config(['javascript.bind_js_vars_to_this_view' => 'errors/layouts/inc/footer']);
JavaScript::put([
'siteUrl' => url('/'),
'languageCode' => config('app.locale'),
'countryCode' => config('country.code', 0),
]);
}
第65行
JavaScript::put([
答案 0 :(得分:0)
尝试在通话中添加反斜杠
\JavaScript::put([