Foreword The Entiy file is used in the current project, and the corresponding Entiy file must be created every time a table is added. , It is very troublesome to set variables at the same time. So
Tag: Laravel
Laravel depends on injection
Laravel depends on injection interface design
Assuming I need to do a payment service now, then I will first design an interface
interface PayInterface{
public function pay(Order $order): string;
} Then implement this interface