-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed
Description
Laravel Version
11.28.1
PHP Version
8.1.4
Database Driver & Version
No response
Description
When an error is thrown from eval()'d code, I don't see the real error but this one:

Steps To Reproduce
In any part of the code, eval() some code that throws an exception:
class AuthenticatedSessionController extends Controller
{
/**
* Display the login view.
*/
public function create(): View
{
eval(<<<PHP
namespace MyNamespace;
class MyClass {
public function myMethod(): void
{
throw new \Exception('Hello, world!');
}
}
PHP);
$class = new \MyNamespace\MyClass();
$class->myMethod();
return view('auth.login');
}
}Metadata
Metadata
Assignees
Labels
No labels