<?php
namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
use Illuminate\Validation\Rule;
use App\User;

class StoreDealersRequest 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()
    {
      $v = [
          'full_name' => 'required|max:255',
          'gender' => 'digits:1',
          'panno' => 'max:255',
          'dob' => 'max:255',
          'email' => 'required|email|max:255',
          'mobileno' => 'required|digits:10',
          'agreeterms' => 'accepted',
      ];
      return $v;
    }
}
