File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,17 @@ public function redirect(int $status = 302, array $headers = []): RedirectRespon
333
333
}
334
334
335
335
/**
336
- * Create an HTTP response that represents the object.
336
+ * Get the URI as a Stringable instance.
337
+ *
338
+ * @return \Illuminate\Support\Stringable
339
+ */
340
+ public function toStringable ()
341
+ {
342
+ return Str::of ($ this ->value ());
343
+ }
344
+
345
+ /**
346
+ * Create an HTTP response that represents the URI object.
337
347
*
338
348
* @param \Illuminate\Http\Request $request
339
349
* @return \Symfony\Component\HttpFoundation\Response
@@ -344,7 +354,7 @@ public function toResponse($request)
344
354
}
345
355
346
356
/**
347
- * Get content as a string of HTML.
357
+ * Get the URI as a string of HTML.
348
358
*
349
359
* @return string
350
360
*/
You can’t perform that action at this time.
0 commit comments