<?php

namespace App\Http\Requests\Api\Dashboard\Admin\Setting;


use App\Http\Requests\Api\ApiMasterRequest;

class SettingRequest extends ApiMasterRequest
{
    /**
     * 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 [
            "phone"                    => "nullable|numeric",
            "email"                    => "nullable|string",
            "facebook"                 => "nullable|url",
            "tiktok"                   => "nullable|url",
            "youtube"                  => "nullable|url",
            "instagram"                => "nullable|url",
            "whatsapp"                 => "nullable|string|max:250",

            "about_ar"                 => "nullable|string",
            "about_en"                 => "nullable|string",
            "terms_ar"                 => "nullable|string",
            "terms_en"                 => "nullable|string",
            "privacy_ar"               => "nullable|string",
            "privacy_en"               => "nullable|string",
        ];
    }
}
