定制 wangta69/laravel-components 二次开发

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

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

wangta69/laravel-components

最新稳定版本:1.0.3

Composer 安装命令:

composer require wangta69/laravel-components

包简介

Laravel Components

README 文档

README

Installation

composer require wangta69/laravel-components

How to Use

HTML Components

text

<x-pondol::text 
  class="" 
   name="example"
  :placeholder="trans('bbs::messages.admin.bbs.category-name')" />

radio

<x-pondol::radio 
  class="" 
  id=""
  name="example" 
  value="0" 
  curval="{{ old('example', isset($example) &&  $example ? $example :'[default value]')}}"/>

checkbox

<x-pondol::checkbox 
  class="" 
  id=""
  name="example" 
  value="0" 
  curval= "{{  old('example', $example )}}"/>

select

<x-pondol::select 
  class="" 
  id="" 
  name="example" 
  :options="$options" 
  value="{{ old('example', isset($example) && $example ? $example : '')}}" />
When options is object
<x-pondol::select 
  :options="$options" 
  option-label="name" 
  option-value="id"
  value="{{ old('example', isset($example) && $example ? $example : '')}}" />

select multiple

<x-pondol::select multiple .......... />

Error

기본 style은 bootstrap 5 이다.

has

특정 필드만 validaion error 발생시

<x-pondol::validation-fail.has field="email" />

first

다수 에러중 하나만 출력

<x-pondol::validation-fail.first />

all

다수 에러 출력

<x-pondol::validation-fail.all />

custom

errors 가 아닌 redirect()->back()->with('error', '') 로 정의된 경우

<x-pondol::validation-fail.custom />

Directive

@checkedtrue

condition이 True 이면 checked 출력ㄱ

<input type="checkbox" @checkedtrue(condition)>

@iftrue

<input type="checkbox" @iftrue(condition, 'checked')>

inarray

<input type="checkbox" @inarray('key', 'array', 'checked')>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固