@@ -159,8 +159,13 @@ public function favicon(string $url, array $attributes = [], ?bool $secure = nul
159159 *
160160 * @return \Illuminate\Contracts\Support\Htmlable
161161 */
162- public function link (string $ url , ?string $ title = null , array $ attributes = [], ?bool $ secure = null , bool $ escape = true ): Htmlable
163- {
162+ public function link (
163+ string $ url ,
164+ ?string $ title = null ,
165+ array $ attributes = [],
166+ ?bool $ secure = null ,
167+ bool $ escape = true
168+ ): Htmlable {
164169 $ url = $ this ->url ->to ($ url , [], $ secure );
165170
166171 if (\is_null ($ title ) || $ title === false ) {
@@ -180,12 +185,17 @@ public function link(string $url, ?string $title = null, array $attributes = [],
180185 * @param string $url
181186 * @param string|null $title
182187 * @param array $attributes
188+ * @param bool $escape
183189 *
184190 * @return \Illuminate\Contracts\Support\Htmlable
185191 */
186- public function secureLink (string $ url , ?string $ title = null , array $ attributes = []): Htmlable
187- {
188- return $ this ->link ($ url , $ title , $ attributes , true );
192+ public function secureLink (
193+ string $ url ,
194+ ?string $ title = null ,
195+ array $ attributes = [],
196+ bool $ escape = true
197+ ): Htmlable {
198+ return $ this ->link ($ url , $ title , $ attributes , true , $ escape );
189199 }
190200
191201 /**
@@ -195,14 +205,20 @@ public function secureLink(string $url, ?string $title = null, array $attributes
195205 * @param string|null $title
196206 * @param array $attributes
197207 * @param bool|null $secure
208+ * @param bool $escape
198209 *
199210 * @return \Illuminate\Contracts\Support\Htmlable
200211 */
201- public function linkAsset (string $ url , ?string $ title = null , array $ attributes = [], ?bool $ secure = null ): Htmlable
202- {
212+ public function linkAsset (
213+ string $ url ,
214+ ?string $ title = null ,
215+ array $ attributes = [],
216+ ?bool $ secure = null ,
217+ bool $ escape = true
218+ ): Htmlable {
203219 $ url = $ this ->url ->asset ($ url , $ secure );
204220
205- return $ this ->link ($ url , $ title ?: $ url , $ attributes , $ secure );
221+ return $ this ->link ($ url , $ title ?: $ url , $ attributes , $ secure, $ escape );
206222 }
207223
208224 /**
@@ -211,12 +227,17 @@ public function linkAsset(string $url, ?string $title = null, array $attributes
211227 * @param string $url
212228 * @param string|null $title
213229 * @param array $attributes
230+ * @param bool $escape
214231 *
215232 * @return \Illuminate\Contracts\Support\Htmlable
216233 */
217- public function linkSecureAsset (string $ url , ?string $ title = null , array $ attributes = []): Htmlable
218- {
219- return $ this ->linkAsset ($ url , $ title , $ attributes , true );
234+ public function linkSecureAsset (
235+ string $ url ,
236+ ?string $ title = null ,
237+ array $ attributes = [],
238+ bool $ escape = true
239+ ): Htmlable {
240+ return $ this ->linkAsset ($ url , $ title , $ attributes , true , $ escape );
220241 }
221242
222243 /**
@@ -226,12 +247,18 @@ public function linkSecureAsset(string $url, ?string $title = null, array $attri
226247 * @param string|null $title
227248 * @param array $parameters
228249 * @param array $attributes
250+ * @param bool $escape
229251 *
230252 * @return \Illuminate\Contracts\Support\Htmlable
231253 */
232- public function linkRoute (string $ name , ?string $ title = null , array $ parameters = [], array $ attributes = []): Htmlable
233- {
234- return $ this ->link ($ this ->url ->route ($ name , $ parameters ), $ title , $ attributes );
254+ public function linkRoute (
255+ string $ name ,
256+ ?string $ title = null ,
257+ array $ parameters = [],
258+ array $ attributes = [],
259+ bool $ escape = true
260+ ): Htmlable {
261+ return $ this ->link ($ this ->url ->route ($ name , $ parameters ), $ title , $ attributes , $ secure , $ escape );
235262 }
236263
237264 /**
@@ -241,12 +268,18 @@ public function linkRoute(string $name, ?string $title = null, array $parameters
241268 * @param string|null $title
242269 * @param array $parameters
243270 * @param array $attributes
271+ * @param bool $escape
244272 *
245273 * @return \Illuminate\Contracts\Support\Htmlable
246274 */
247- public function linkAction (string $ action , ?string $ title = null , array $ parameters = [], array $ attributes = []): Htmlable
248- {
249- return $ this ->link ($ this ->url ->action ($ action , $ parameters ), $ title , $ attributes );
275+ public function linkAction (
276+ string $ action ,
277+ ?string $ title = null ,
278+ array $ parameters = [],
279+ array $ attributes = [],
280+ bool $ escape = true
281+ ): Htmlable {
282+ return $ this ->link ($ this ->url ->action ($ action , $ parameters ), $ title , $ attributes , $ secure , $ escape );
250283 }
251284
252285 /**
0 commit comments