2017 © Pedro Peláez
 

laravel b4c

Use Laravel Forms with Bootstrap 4 Components

image

maksuco/b4c

Use Laravel Forms with Bootstrap 4 Components

  • Thursday, September 28, 2017
  • by maksuco
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 23 % Grown

The README.md

Generate slugs for routes and files in Laravel

This package helps you render bootstrap 4 components inside blade., (*1)

Installation

You can install the package via composer: ``` bash $ composer require maksuco/b4c OR $ composer require maksuco/b4c:dev-master, (*2)

This Package works with autodiscovery in Laravel +5.5, but is compatible with older versions

## Usage


Render text inputs:

```php

  {!! \B4C::text($name,$label,$value,$attributes,$extra,$version) !!}
  //formtext('video','Video',$property->video,['placeholder' => 'Video code'],'required','form-group-default')

Render Textarea inputs:, (*3)


{!! \B4C::textarea($name,$label,$value,$attributes,$version) !!} //formtextarea('video','Video',$property->video,['css' => 'color-primary'],'')

Render file inputs:, (*4)


{!! \B4C::file($name,$label,$attributes,$extra,$version) !!} //formfile('floorplan',__('Floor Plan'),['class' => 'mt-5','accept' => '.jpg,.jpeg,.png,.pdf'],'required','')

Render select inputs:, (*5)


{!! \B4C::select($name,$label,$value,$options,$first,$attributes,$extra,$version) !!} //formselect('zone',__('zone'),$property->zone,['N','E','W','S','NE','NW','SE','SW'],'Choose one',['class' => 'h-20'],'','')

Render checkbox inputs:, (*6)


{!! \B4C::check($name,$label,$value,$extra,'disabled') !!} //formswitch('show',__('Show'),1)

Render switch inputs:, (*7)


{!! \B4C::switch($name,$label,$value,$extra,'') !!} //formswitch('show',__('Show'),$item->show)

Render Radio inputs:, (*8)


{!! \B4C::radio($name,$label,$value,$extra,'') !!}

Render text/switch inputs:, (*9)


{!! \B4C::textswitch($name,$label,$value,$attributes,$switch_name,$switch_value) !!} //formtext('video','Video',$property->video,['placeholder' => 'Video code'],'video_on',$property->video_on)

Security

If you discover any security related issues, please report it., (*10)

Credits

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

28/09 2017

dev-master

9999999-dev

Use Laravel Forms with Bootstrap 4 Components

  Sources   Download

MIT

The Requires

 

slugs laravel-bootstrap-components maksuco

28/09 2017

v1.0.5

1.0.5.0

Use Laravel Forms with Bootstrap 4 Components

  Sources   Download

MIT

The Requires

 

slugs laravel-bootstrap-components maksuco

28/09 2017

v1.0.4

1.0.4.0

Use Laravel Forms with Bootstrap 4 Components

  Sources   Download

MIT

The Requires

 

slugs laravel-bootstrap-components maksuco

27/09 2017

v1.0.3

1.0.3.0

Use Laravel Forms with Bootstrap 4 Components

  Sources   Download

MIT

The Requires

 

slugs laravel-bootstrap-components maksuco