Answer the question
In order to leave comments, you need to log in
Why doesn't the constructor work in Laravel + php8?
With such a constructor entry
public function __construct(
private RoleRepositoryInterface $role_repository,
private RoleService $role_service,
) {}
"message": "syntax error, unexpected 'private' (T_PRIVATE), expecting variable (T_VARIABLE)",
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question