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

deleting user points #3

@Elusoji

Description

@Elusoji

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;
            }
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions