app/Http/Requests/TenantRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' => 'required|max:255',
            'phone' => 'required|numeric|min:10',
            'image' => 'image|max:2048',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|max:255' , 'phone' => 'required|numeric|min:10' , 'image' => 'image|max:2048' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .