public static function generate(Authenticatable $user)
    {
        return new static([
            'email' => $user->email,
            'token' => hash_hmac('sha256', Str::random(40), config('app.key')),
            'created_at' => Carbon::now(),
        ]);
    }
public static function generate(Authenticatable $user)
    {
        return new static([
            'email' => $user->email,
            'token' => hash_hmac('sha256', Str::random(40), config('app.key')),
            'created_at' => Carbon::now(),
        ]);
    }
public static function generate ( Authenticatable $ user ) { return new static ( [ 'email' => $ user -> email , 'token' => hash_hmac ( 'sha256' , Str :: random ( 40 ) , config ( 'app.key' ) ) , 'created_at' => Carbon :: now ( ) , ] ) ; }
Generates a new password token.

@param Authenticatable $user
@return PasswordReset
Generates a new password token .