Use DS constant.
This commit is contained in:
parent
c74118decb
commit
6c3c297c5c
|
@ -20,7 +20,7 @@ public static function exception($exception, $trace = true)
|
|||
// For Laravel view errors we want to show a prettier error:
|
||||
$file = $exception->getFile();
|
||||
|
||||
if (str_contains($exception->getFile(), 'eval()') and str_contains($exception->getFile(), 'laravel/view.php'))
|
||||
if (str_contains($exception->getFile(), 'eval()') and str_contains($exception->getFile(), 'laravel'.DS.'view.php'))
|
||||
{
|
||||
$message = 'Error rendering view: ['.View::$last['name'].']'.PHP_EOL.PHP_EOL.$message;
|
||||
|
||||
|
|
Loading…
Reference in New Issue