Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f181aba73 | ||
|
|
55a38c0a71 | ||
|
|
0abf2a3aa1 | ||
|
|
08f99410b4 | ||
|
|
43d028b30f | ||
|
|
7c2c4f1734 | ||
|
|
028c5bf054 | ||
|
|
58c127bcf7 |
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -1,4 +1,4 @@
|
|||||||
# Forms & HTML
|

|
||||||
|
|
||||||
[](https://travis-ci.org/LaravelCollective/html)
|
[](https://travis-ci.org/LaravelCollective/html)
|
||||||
[](https://packagist.org/packages/laravelcollective/html)
|
[](https://packagist.org/packages/laravelcollective/html)
|
||||||
|
|||||||
+1
-1
@@ -1298,7 +1298,7 @@ class FormBuilder
|
|||||||
&& is_null($old)
|
&& is_null($old)
|
||||||
&& is_null($value)
|
&& is_null($value)
|
||||||
&& !is_null($this->view->shared('errors'))
|
&& !is_null($this->view->shared('errors'))
|
||||||
&& count(php_sapi_name() === 'cli' ? [] : $this->view->shared('errors')) > 0
|
&& count(is_countable($this->view->shared('errors')) ? $this->view->shared('errors') : []) > 0
|
||||||
) {
|
) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
namespace Collective\Html;
|
namespace Collective\Html;
|
||||||
|
|
||||||
|
use Illuminate\Contracts\Support\DeferrableProvider;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
use Illuminate\View\Compilers\BladeCompiler;
|
use Illuminate\View\Compilers\BladeCompiler;
|
||||||
|
|
||||||
class HtmlServiceProvider extends ServiceProvider
|
class HtmlServiceProvider extends ServiceProvider implements DeferrableProvider
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Supported Blade Directives
|
* Supported Blade Directives
|
||||||
@@ -16,13 +17,6 @@ class HtmlServiceProvider extends ServiceProvider
|
|||||||
protected $directives = ['entities','decode','script','style','image','favicon','link','secureLink','linkAsset','linkSecureAsset','linkRoute','linkAction','mailto','email','ol','ul','dl','meta','tag','open','model','close','token','label','input','text','password','hidden','email','tel','number','date','datetime','datetimeLocal','time','url','file','textarea','select','selectRange','selectYear','selectMonth','getSelectOption','checkbox','radio','reset','image','color','submit','button','old'
|
protected $directives = ['entities','decode','script','style','image','favicon','link','secureLink','linkAsset','linkSecureAsset','linkRoute','linkAction','mailto','email','ol','ul','dl','meta','tag','open','model','close','token','label','input','text','password','hidden','email','tel','number','date','datetime','datetimeLocal','time','url','file','textarea','select','selectRange','selectYear','selectMonth','getSelectOption','checkbox','radio','reset','image','color','submit','button','old'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* Indicates if loading of the provider is deferred.
|
|
||||||
*
|
|
||||||
* @var bool
|
|
||||||
*/
|
|
||||||
protected $defer = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the service provider.
|
* Register the service provider.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in new issue
Block a user