Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/Illuminate/Support/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,17 @@ public function redirect(int $status = 302, array $headers = []): RedirectRespon
}

/**
* Create an HTTP response that represents the object.
* Get the URI as a Stringable instance.
*
* @return \Illuminate\Support\Stringable
*/
public function toStringable()
{
return Str::of($this->value());
}

/**
* Create an HTTP response that represents the URI object.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
Expand All @@ -344,7 +354,7 @@ public function toResponse($request)
}

/**
* Get content as a string of HTML.
* Get the URI as a string of HTML.
*
* @return string
*/
Expand Down
Loading