コード例 #1
0
 public function boot()
 {
     parent::boot();
     $this->userRepository = app()->make(UserRepositoryContract::class);
 }
コード例 #2
0
 public function boot()
 {
     parent::boot();
     $this->userRepository = app()->make(UserRepositoryContract::class);
     $this->classRepository = app()->make(ClassRepositoryContract::class);
     $this->guardiansRepository = app()->make(GuardianRepositoryContract::class);
 }