feat: implement profile editing and password change

This commit is contained in:
2026-08-18 09:26:09 +03:30
parent d4f49df688
commit bb4196cc1b
8 changed files with 145 additions and 19 deletions
@@ -3,6 +3,8 @@
namespace App\Http\Controllers\Account;
use App\Http\Controllers\Controller;
use App\Models\City;
use App\Models\Province;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
@@ -13,6 +15,15 @@ class ProfileController extends Controller
{
$title = 'پروفایل';
$user = Auth::user();
return view('account.profile', compact('title', 'user'));
}
public function getCities($provinceId)
{
$cities = City::where('province_id', $provinceId)->orderBy('name')->get(['id', 'name']);
return response()->json($cities);
}
}