skip to Main Content

Laravel 9: authenticate while running a command

Here is an example of Laravel command: class TestUserCommand extends Command { protected $signature = 'test:user'; protected $description = 'Command description'; public function handle(): void { auth('api')->loginUsingId(1); ... domain service call } } It gives me the following error: Method…

VIEW QUESTION

Symfony SessionHandler Warning – PHP

when I try to run a especifical project on my computer, symfony show me this error: Warning: SessionHandler::read(): open(/opt/alt/php74/var/lib/php/sessionsess_rt7p5374uhjagiperqv83aej38, O_RDWR) failed: No such file or directory (2) I'm use symfony 5.4 and PHP 8

VIEW QUESTION
Back To Top
Search