php Laravel Observer配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Laravel Observer配置相关的知识,希望对你有一定的参考价值。

<?php


return [
	/*
	|--------------------------------------------------------------------------
	| Observers
	|--------------------------------------------------------------------------
	|
	| This value is the list of models being observed by the observer class.
	| The observer will observe any events triggered by eloquent and of course,
	| to which event the observer want to listen to - created, creating, updating,
	| updated, deleting or deleted.
	|
	 */

	\App\Observers\HashidsObserver::class => [
		\App\Models\User::class,
	],
];

以上是关于php Laravel Observer配置的主要内容,如果未能解决你的问题,请参考以下文章

Laravel 利用 observer 类基于状态属性,对进行删除和修改的控制

php magento observer magento 1

php 创建Hashids Observer

php magento observer magento 1

Laravel 5 中的配置

CentOS 7 下配置 Nginx + PHP7.1 + MariaDB 以及 Laravel 框架