MCPcopy Index your code
hub / github.com/cretueusebiu/vform

github.com/cretueusebiu/vform @2.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.2 ↗ · + Follow
50 symbols 141 edges 34 files 32 documented · 64% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

vform

Handle Laravel-Vue forms and validation with ease

Latest Version on NPM Build Status Total Downloads

vform is a tiny library for Vue 2/3 to help with forms and validation when using Laravel as a back-end.

It provides a form instance to wrap your data in a convenient way and send it to your Laravel application via an HTTP request using axios.

Installation

npm install axios vform

Basic Usage

<template>
  <form @submit.prevent="login" @keydown="form.onKeydown($event)">
    <input v-model="form.username" type="text" name="username" placeholder="Username">




    <input v-model="form.password" type="password" name="password" placeholder="Password">




    <button type="submit" :disabled="form.busy">
      Log In
    </button>
  </form>
</template>

<script>
import Form from 'vform'

export default {
  data: () => ({
    form: new Form({
      username: '',
      password: ''
    })
  }),

  methods: {
    async login () {
      const response = await this.form.post('/api/login')
      // ...
    }
  }
}
</script>

Laravel Controller:

<?php

class LoginController extends Controller
{
    public function login(Request $request)
    {
        $this->validate($request, [
            'username' => 'required',
            'password' => 'required',
        ]);

        // ...
    }
}

Documentation

You'll find the documentation on vform.vercel.app.

Changelog

Please see CHANGELOG for more information what has changed recently.

Extension points exported contracts — how you extend this code

Progress (Interface)
(no doc)
types/Form.d.ts
Progress (Interface)
(no doc)
src/Form.ts

Core symbols most depended-on inside this repo

set
called by 25
src/Errors.ts
has
called by 9
src/Errors.ts
keys
called by 8
src/Form.ts
any
called by 6
src/Errors.ts
clear
called by 6
src/Form.ts
submit
called by 6
src/Form.ts
extractErrors
called by 6
src/Form.ts
arrayWrap
called by 5
src/util.ts

Shape

Method 32
Class 8
Function 8
Interface 2

Languages

TypeScript100%

Modules by API surface

src/Form.ts24 symbols
src/Errors.ts13 symbols
types/Form.d.ts3 symbols
src/util.ts3 symbols
site/postcss-nested-import.js3 symbols
types/Errors.d.ts2 symbols
src/components/Alert.js1 symbols
site/vite.config.ts1 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add vform \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact