Answer the question
In order to leave comments, you need to log in
How do interfaces make the trait's methods work?
In Laravel, you need to make imlements of the MustVerifyEmail interface and verification by email starts working. Can't figure out how it's done? Interface - regulates which methods need to be created or overridden in the class. But these methods are already in the class, regardless of the implementation of the interface. How does an interface change functionality?
Answer the question
In order to leave comments, you need to log in
somewhere in the code there is a stupid check
if ($obj instanceof MustVerifyEmail) {
...
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question