fieldSearchable; } /** * Configure the Model. **/ public function model() { return UserDevice::class; } /** * @param array $input * * @return UserDevice|bool */ public function store($input) { $isExist = UserDevice::wherePlayerId($input['player_id'])->whereUserId($input['user_id'])->exists(); if ($isExist) { return false; } return UserDevice::create($input); } }