N
Size: a a a
N
А
А
N
N
N
А
N
N
А
ES
public function createNewBasket()
{
$token = Str::random(255);
while(Basket::firstWhere('token', $token))
{
$token = Str::random(255);
}
return Basket::create([
'token' => $token
]);
}
Does this code have the potential to cause errors?ЕМ
ЕМ
KA
А
А
[
EventOne::class => [CommonListener::class],
EventSecond::class => [CommonListener::class],
];
А
KA
А
/**
* @param EventOne | EventSecond $event
*/
public function handle(object $event): void
{
}
А