working on form builder.
This commit is contained in:
1 parent
a5751249be
commit
172673c879
3 files changed
+226
-84
No files matched your search
@@ -0,0 +1,37 @@
|
||||
<?php namespace Illuminate\Html;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class HtmlServiceProvider extends ServiceProvider {
|
||||
|
||||
/**
|
||||
* Indicates if loading of the provider is deferred.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
protected $defer = true;
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app['form'] = $this->app->share(function($app)
|
||||
{
|
||||
return new FormBuilder($app['url'], $app['session']->getToken());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function provides()
|
||||
{
|
||||
return array('form');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user