Skip to content

Commit

Permalink
Merge branch '6.0' into 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed May 17, 2020
2 parents 8d18ac6 + 240cfcf commit 8951151
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
9 changes: 9 additions & 0 deletions readme-ptbr.md
@@ -0,0 +1,9 @@
![LaravelCollective HTML](LaravelCollectiveHTML-banner.png)

[![Build Status](https://travis-ci.org/LaravelCollective/html.svg)](https://travis-ci.org/LaravelCollective/html)
[![Total Downloads](https://poser.pugx.org/LaravelCollective/html/downloads)](https://packagist.org/packages/laravelcollective/html)
[![Latest Stable Version](https://poser.pugx.org/LaravelCollective/html/v/stable.svg)](https://packagist.org/packages/laravelcollective/html)
[![Latest Unstable Version](https://poser.pugx.org/LaravelCollective/html/v/unstable.svg)](https://packagist.org/packages/laravelcollective/html)
[![License](https://poser.pugx.org/LaravelCollective/html/license.svg)](https://packagist.org/packages/laravelcollective/html)

A documentação oficial para Forms & Html para o framework Laravel podem ser encontrados no site [LaravelCollective](https://laravelcollective.com/docs).
2 changes: 1 addition & 1 deletion src/FormBuilder.php
Expand Up @@ -1360,7 +1360,7 @@ protected function getModelValueAttribute($name)
return $this->model->getFormValue($key);
}

return data_get($this->model, $this->transformKey($name));
return data_get($this->model, $key);
}

/**
Expand Down
27 changes: 17 additions & 10 deletions src/HtmlBuilder.php
Expand Up @@ -171,12 +171,13 @@ public function link($url, $title = null, $attributes = [], $secure = null, $esc
* @param string $url
* @param string $title
* @param array $attributes
* @param bool $escape
*
* @return \Illuminate\Support\HtmlString
*/
public function secureLink($url, $title = null, $attributes = [])
public function secureLink($url, $title = null, $attributes = [], $escape = true)
{
return $this->link($url, $title, $attributes, true);
return $this->link($url, $title, $attributes, true, $escape);
}

/**
Expand All @@ -186,14 +187,15 @@ public function secureLink($url, $title = null, $attributes = [])
* @param string $title
* @param array $attributes
* @param bool $secure
* @param bool $escape
*
* @return \Illuminate\Support\HtmlString
*/
public function linkAsset($url, $title = null, $attributes = [], $secure = null)
public function linkAsset($url, $title = null, $attributes = [], $secure = null, $escape = true)
{
$url = $this->url->asset($url, $secure);

return $this->link($url, $title ?: $url, $attributes, $secure);
return $this->link($url, $title ?: $url, $attributes, $secure, $escape);
}

/**
Expand All @@ -202,12 +204,13 @@ public function linkAsset($url, $title = null, $attributes = [], $secure = null)
* @param string $url
* @param string $title
* @param array $attributes
* @param bool $escape
*
* @return \Illuminate\Support\HtmlString
*/
public function linkSecureAsset($url, $title = null, $attributes = [])
public function linkSecureAsset($url, $title = null, $attributes = [], $escape = true)
{
return $this->linkAsset($url, $title, $attributes, true);
return $this->linkAsset($url, $title, $attributes, true, $escape);
}

/**
Expand All @@ -217,12 +220,14 @@ public function linkSecureAsset($url, $title = null, $attributes = [])
* @param string $title
* @param array $parameters
* @param array $attributes
* @param bool $secure
* @param bool $escape
*
* @return \Illuminate\Support\HtmlString
*/
public function linkRoute($name, $title = null, $parameters = [], $attributes = [])
public function linkRoute($name, $title = null, $parameters = [], $attributes = [], $secure = null, $escape = true)
{
return $this->link($this->url->route($name, $parameters), $title, $attributes);
return $this->link($this->url->route($name, $parameters), $title, $attributes, $secure, $escape);
}

/**
Expand All @@ -232,12 +237,14 @@ public function linkRoute($name, $title = null, $parameters = [], $attributes =
* @param string $title
* @param array $parameters
* @param array $attributes
* @param bool $secure
* @param bool $escape
*
* @return \Illuminate\Support\HtmlString
*/
public function linkAction($action, $title = null, $parameters = [], $attributes = [])
public function linkAction($action, $title = null, $parameters = [], $attributes = [], $secure = null, $escape = true)
{
return $this->link($this->url->action($action, $parameters), $title, $attributes);
return $this->link($this->url->action($action, $parameters), $title, $attributes, $secure, $escape);
}

/**
Expand Down

0 comments on commit 8951151

Please sign in to comment.