protected function recordActivity($event)
    {
        $this->activity()->create([
            'user_id' => auth()->id(),
            'type' => $this->getActivityType($event)
        ]);
    }
protected function recordActivity($event)
    {
        $this->activity()->create([
            'user_id' => auth()->id(),
            'type' => $this->getActivityType($event)
        ]);
    }
protected function recordActivity ( $ event ) { $ this -> activity ( ) -> create ( [ 'user_id' => auth ( ) -> id ( ) , 'type' => $ this -> getActivityType ( $ event ) ] ) ; }
Record new activity for the model.

@param string $event
Record new activity for the model .