简体   繁体   中英

Laravel: Meaning of the" ::class" in config file

I just am curious and want to know, what is it about with this obviously interesting expression ::class . Is there a CONST called class in the static classes scope? I didn't find anything using Google, so I thought to ask here.

Hopefully someone is able to explain it to me. Thanks in advance!

It's a way to return namespaced fully qualified class name. Check out PHP5 docs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM