Welcome Guest, Not a member yet? Register   Sign In
Using ::class in Model's $returnType instead of string - bad?
#2

Yes, "::class" is better.
If you are using an IDE, the IDE auto completes class names to avoid typos,
and you can go to the class file with one click.
Reply


Messages In This Thread
RE: Using ::class in Model's $returnType instead of string - bad? - by kenjis - 06-15-2022, 02:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB