<?php

namespace App\Http\Requests;

use App\Models\User;
use Illuminate\Foundation\Http\FormRequest;

class ProfileUpdateRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'required|max:255',
            'email' => 'required|max:255|unique:users,email,' . auth()->user()->id,
            // 'mobile' => 'max:20|unique:users,mobile,' . auth()->user()->id,
            // 'org_name' => 'required|max:255',
            // 'lat' => 'max:25',
            // 'lng' => 'max:25',
            // 'description' => 'required',
            // 'about_title' => 'required',
            // 'support_email' => 'required|email'
        ];
    }
}
