public function observes()
    {
        foreach (config('observers') as $observer => $models) {
            foreach ($models as $model) {
                if (class_exists($model) && class_exists($observer)) {
                    $model::observe($observer);
                }
            }
        }
    }
public function observes()
    {
        foreach (config('observers') as $observer => $models) {
            foreach ($models as $model) {
                if (class_exists($model) && class_exists($observer)) {
                    $model::observe($observer);
                }
            }
        }
    }
public function observes ( ) { foreach ( config ( 'observers' ) as $ observer => $ models ) { foreach ( $ models as $ model ) { if ( class_exists ( $ model ) && class_exists ( $ observer ) ) { $ model :: observe ( $ observer ) ; } } } }
Register observers.
Register observers .