This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NovaServiceProvider extends NovaApplicationServiceProvider | |
{ | |
public function boot() | |
{ | |
parent::boot(); | |
// registers observers for eloquent model events(only for Nova) | |
Nova::serving(function () { | |
\App\User::observe(UserObserver::class); | |
}); | |
} |