定制 coder-studio/bootstrap 二次开发

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

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

coder-studio/bootstrap

Composer 安装命令:

composer require coder-studio/bootstrap

包简介

README 文档

README

The package allows to use form controls of the Twitter Bootstrap 4 in the Laravel 5.x Blade template.

Installation

Install with composer the Composer.

$ composer require coder-studion/bootstrap

Add to config file in providers and aliases:

'providers' => [
...
CoderStudio\Bootstrap\Providers\BootstrapServiceProvider::class,
]

'aliases' => [
...
'Bootstrap' => CoderStudio\Bootstrap\Facades\Bootstrap::class,
],

Elements:

Bootstrap::button($name, $value = null);
Bootstrap::checkbox($name, $value = null);
Bootstrap::hidden($name, $value = null);
Bootstrap::password($name, $value = null);
Bootstrap::reset($name, $value = null);
Bootstrap::submit($name, $value = null);
Bootstrap::text($name, $value = null);
Bootstrap::color($name, $value = null);
Bootstrap::date($name, $value = null);
Bootstrap::datetime($name, $value = null);
Bootstrap::datetime_local($name, $value = null);
Bootstrap::email($name, $value = null);
Bootstrap::number($name, $value = null);
Bootstrap::range($name, $value = null);
Bootstrap::search($name, $value = null);
Bootstrap::tel($name, $value = null);
Bootstrap::time($name, $value = null);
Bootstrap::url($name, $value = null);
Bootstrap::month($name, $value = null);
Bootstrap::week($name, $value = null);
Bootstrap::textarea($name, $value = null);
Bootstrap::select($name, $value = null);

Methods:

label(string $label)
help(string $help)
addonLeft(string $addon_left)
addonRight(string $addon_right)
valid()
invalid()
sm()
lg()
floatingLabel()
params(array $params)
options(array $options)
id(string $id)
cssClass(string $class)
placeholder(string $placeholder)
rows(string $rows)
get()

Usage in Blade template:

<form method="POST" action="asset('submit')">
    {!! Bootstrap::text('inputName')->label('label name')->placeholder('label name')->floatingLabel()->id("idName")->params()->get() !!}    
</form>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固