Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

deleting user points #3

Open
Elusoji opened this issue Dec 30, 2021 · 0 comments
Open

deleting user points #3

Elusoji opened this issue Dec 30, 2021 · 0 comments

Comments

@Elusoji
Copy link

Elusoji commented Dec 30, 2021

how can i delete the user point please when i use resetPoint() it deleted the table

public function handle()
    {
        $users = User::with('points')->get();
        foreach ($users as $user) {
            if ($user->achieved_points >= 5000) {
                    $user->user->achieved_points - $user->achieved_points;
            }
        }
    }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant