<?php
$phone = '01444145269';
$pass = '123456';

// Simulate auth_complete for saving password
$req = Request::create('/customer/auth-complete', 'POST', [
    'phone' => $phone,
    'password' => $pass,
    'is_new_password' => 1
]);

$ctrl = app(App\Http\Controllers\Frontend\CustomerController::class);
$res = $ctrl->auth_complete($req)->getContent();
echo "Response: " . $res . "\n";

// Check if it saved
$customer = App\Models\Customer::where('phone', $phone)->first();
echo "password_set after: " . $customer->password_set . "\n";
