Skip to content

viniciusferreira/collective-html

 
 

Repository files navigation

Forms & HTML

Lumen Version Latest Stable Version Total Downloads Latest Unstable Version License Build Status

Official documentation for Forms & Html for The Laravel/Lumen Framework can be found at the LaravelCollective website.

Instalation on Lumen

composer require vluzrmos/collective-html

Configuration

On your bootstrap/app.php:

$app->register('Collective\Html\HtmlServiceProvider');

class_alias('Collective\Html\HtmlFacade', 'Html');

class_alias('Collective\Html\FormFacade', 'Form');

And remember to enable de facades, just uncomment that line:

$app->withFacades()

If you want to automatically inject the $html and $form variables on all your Blade's View:

$app->register('Collective\Html\InjectVarsServiceProvider');

And now you will not need the facades anymore, just that:

{!! $form->open() !!}
//...
{!! $html->asset() !!}

Credits

That package is just a free modification of LaravelCollective/Html to work with Lumen Framework.

About

HTML and Form Builders for the Lumen Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%