What's the difference between a Contract in Laravel and an Interface in PHP?

后端 未结 4 1664
执念已碎
执念已碎 2021-01-08 00:04

As far as I can tell, Laravel refers to the interfaces it extends as Contracts because they are used by Laravel. But this seems a bit like circular reasoning. There is no va

4条回答
  •  梦毁少年i
    2021-01-08 00:23

    Short description: Contract is a term used for interfaces, but also for abstract classes.

提交回复
热议问题