Example #1
0
 public function assignAction(Action $action)
 {
     if ($action != null) {
         return UserAction::firstOrCreate(['user_id' => $this->id, 'action_id' => $action->id]);
     } else {
         Log::debug(__METHOD__ . ' *** null action given');
     }
 }