Maximum Execution Time Exceeded show error (#11720)

* Maximum Execution Time Exceeded show error
Migrate translations to php translation files.
Fix invalid view class in Handler

* Update MaximumExecutionTimeExceeded.php

* Update MaximumExecutionTimeExceeded.php
This commit is contained in:
Tony Murray
2020-05-28 14:39:19 -05:00
committed by GitHub
parent b2d6540ff2
commit 8b37eaf752
7 changed files with 107 additions and 9 deletions

View File

@@ -67,8 +67,8 @@ class UnserializableRouteCache extends \Exception implements UpgradeableExceptio
*/
public function render(\Illuminate\Http\Request $request)
{
$title = __('Error caused by PHP version mismatch');
$message = __('The version of PHP your webserver is running (:web_version) does not match the CLI version (:cli_version).', ['cli_version' => $this->cli_php_version, 'web_version' => $this->web_php_version]);
$title = trans('exceptions.unserializable_route_cache.title');
$message = trans('exceptions.unserializable_route_cache.message', ['cli_version' => $this->cli_php_version, 'web_version' => $this->web_php_version]);
return $request->wantsJson() ? response()->json([
'status' => 'error',