定制 badore/contabi_form 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

badore/contabi_form

最新稳定版本:v1.0.0

Composer 安装命令:

composer require badore/contabi_form

包简介

Laravel easy form manager

README 文档

README

Total Downloads Latest Stable Version License

Introduction

Laravel easy form manager based on bootstrap

Official Documentation

Installation

The scaffolding is located in the badore/contabi_form Composer package, which may be installed using Composer:

composer require badore/contabi_form

Once the badore/contabi_form package has been installed, you may install the frontend scaffolding using the contabiform Artisan command:

// Generate basic scaffolding...
php artisan contabiform:zacca

Basic Usage

Controller

use Badore\ContabiForm\ContabiForm;

class DoctorController extends Controller
{
   	
	public function create()  }}{
		
		{{  $form = new ContabiForm('row')  }};
		
		return view('doctor.create',compact('form'))  }};
	}
Form View example
{{  $form->open('POST','doctors.store')  }}

{{  $form->input('name', 'required', 3)  }} 
{{  $form->input('address', null, 4)  }} 
{{  $form->inputData('date', null, 1)  }} 
{{  $form->inputMoney('amount', null, 1)  }} 
{{  $form->select('city', $cities_array, required , 2)  }} 
{{  $form->button('Save', 'success')  }}

{{  $form->close()  }} 
Form row example
{{  $form->row() // start row

{{  $form->input('address', 'required', 3)  }} 
{{  $form->inputData('date', null, 1)  }} 
{{  $form->inputMoney('amount', null, 1)  }} 
{{  $form->select('city', $cities_array, required , 2)  }} 

{{  $form->rowclose()  }} // close row

Select your form new ContabiForm('horizontal') new ContabiForm('inline') new ContabiForm('row')

View {{ $form->open('POST','route') }}

Methods

Start the form in your blade view file

{{ $form->open('POST','doctors.store') }} {{ $form->open('GET','doctors.store') }}

Input text

{{ $form->input('title', 'required', 4) }}
Params: ['title'] (also included for label, name and id, ['required' -or- 'null'], [lenght: es 4]

input Date (require bootstrap datepicker)

{{ $form->inputData('data', null, 1) }}

input money (number)

{{ $form->inputMoney('importo', null, 1) }} //money es: 125,00

input file

{{ $form->file('file', 'required') }}

input email

{{ $form->email('email', required , 4) }}

input select

{{ $form->select('titolo', array(), required , 2) }}

Params: ['title'], [array values], ['required' -o- 'null'], [lenght: es 4]

input

{{ $form->textarea('testo', required) }}

Button

{{ $form->button('Save', 'success') }}

Params: ['title'], ['bootstrap color: success, info, warning, danger, dark, light']

Form close

{{ $form->close() }}

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固