2017 © Pedro Peláez
 

library laravel5-foundation

Zurb Foundation components for Laravel5

image

dansmith/laravel5-foundation

Zurb Foundation components for Laravel5

  • Wednesday, February 3, 2016
  • by dansmith
  • Repository
  • 3 Watchers
  • 12 Stars
  • 1,831 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

Build Status, (*1)

laravel5-foundation

Create easy pagination and form elements based on the Zurb Foundation framework., (*2)

Installation

Add to composer.json:, (*3)

"dansmith/laravel5-foundation": "0.3.*", (*4)

This package comes with two service providers which should be added to the providers array in your config/app.php file:, (*5)

  • 'Foundation\FoundationServiceProvider',
  • 'Foundation\FoundationFormServiceProvider',

Add the facade (Optional):, (*6)

  • 'Foundation' => 'Foundation\Facades\Foundation',

Pagination

Call the corresponding method on the facade depending on whether your collection is using simple or regular pagination., (*7)

{!! $users->render(Foundation::simplePaginate($users)) !!}
<div class="pagination-centered">
    {!! $users->render(Foundation::paginate($users)) !!}
</div>

Forms

The form component extends the Illuminate Form Builder package, which means all of the regular methods are available as normal., (*8)

{!! Form::text('title', $page->title) !!}

The extension allows the creation of inputs which are nested inside of their labels, which removes the need to connect them using the for attribute. The nested inputs follow the same naming conventions as the base inputs, with a prefix of 'wrapped'. The only difference being that the label text is now specified as the second parameter., (*9)

{!! Form::wrappedText('title', 'Title', $page->title) !!}

If there are any validation errors which match the name of the specified input, an error class will be applied to both the label and input elements and the first error found will be inserted into a small element (See the Foundation documentation for examples), (*10)

The Versions

03/02 2016

dev-master

9999999-dev

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel foundation laravel5

11/09 2015

v0.3.0

0.3.0.0

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel foundation laravel5

10/06 2015

v0.2.3

0.2.3.0

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel foundation laravel5

10/06 2015

v0.2.2

0.2.2.0

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel foundation laravel5

25/03 2015

v0.2.1

0.2.1.0

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel foundation laravel5

24/03 2015

v0.2.0

0.2.0.0

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel foundation laravel5

06/02 2015

0.1

0.1.0.0

Zurb Foundation components for Laravel5

  Sources   Download

MIT

The Requires

 

laravel foundation laravel5