Fork me on Baidu
摘要: 监听模式 又叫观察者模式 代码之间降低解耦 降低了耦合度 。代码不会显得的臃肿 首先 创建一个 模型层 php artisan make:model models/exam/User; 然后创建 observer 监听php artisan make:observer UserObserve -mo 阅读全文
posted @ 2021-03-10 15:33 consideration 阅读(289) 评论(0) 推荐(0)