1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How is MustVerifyEmail a trait and is being implemented not used

Discussão em 'Outras Linguagens' iniciado por Samer George, Outubro 9, 2024 às 14:23.

  1. Samer George

    Samer George Guest

    Sorry if my question is repetitive but I couldn't find the exact answer to my question.

    In PHP, a trait can only be implemented with the keyword use, and an interface can only be implemented with the keyword implements.

    In Laravel docs the MustVerifyEmail is called an interface and implemented with the keyword implements but actually in the source code it is a trait.

    So my question is I cannot understand the concept used in Laravel because that scenario causes errors in native PHP, cannot implements a trait.

    Thank you.

    Continue reading...

Compartilhe esta Página