I would like to use sanctum as a guard, I switch the driver from session to sanctum and then this gives the error message. I don't know where to look for the error or which way to start.
'guards' => [
'web' => [
'driver' => 'session' -> // --> to this 'sanctum',
'provider' => 'members',
],
In WorkerCrashedException.php line 41:
The command "PARATEST='1' TEST_TOKEN='11' UNIQUE_TEST_TOKEN='11_63bbc9686d4b6' '/usr/local/bin/php' '/var/www/html/vendor/phpunit/phpunit/phpunit' '--configuration' '/var/www/html/phpunit.xml' '--filter' '/
shouldRejectLoginAsMemberGivingCorrectPasswordAndGivingInvalidEmail(?:\s|$)/' '--no-logging' '--no-coverage' '--printer' 'ParaTest\Runners\PHPUnit\Worker\NullPhpunitPrinter' '--log-junit' '/tmp/PT_BPNPOL' '
/var/www/html/tests/Unit/Controllers/AuthControllerTest.php'" failed.
Exit Code: 139(Segmentation violation)
Working directory: /var/www/html
Output:
================
Error Output:
================
I also experienced the same issue in the same case and resolved it as follows. Laravel 10.
config/sanctum.php