//! Generate URLs to routes, to paths, and to package assets.
//!
//! [`route`] finds a route by its handler and fills in its parameters. [`to`] builds a URL to a
//! path, and [`vendor_asset`] builds one to a file a package published. A signed URL carries a
//! signature, so the application can tell whether someone changed its parameters.
//!
//! ```no_run
//! # async fn show() {}
//! # async fn unsubscribe() {}
//! # fn example() -> laravel::Result<()> {
//! use laravel::time::ToSpan;
//!
//! laravel::url::route(show, 1)?; // http://localhost/users/1...
//! laravel::url::to("/about"); // http://localhost/about...
//! laravel::url::signed_route(unsubscribe, 1)?;
//! laravel::url::temporary_signed_route(unsubscribe, 1.day(), 1)?;
//! laravel::url::vendor_asset("billing", "app.css");
//! # Ok(())
//! # }
//! ```
//!
//! To learn more, check out the
//! [URL generation guide](https://github.com/laravel/rust-framework/blob/0.x/docs/urls.md).
#[doc(hidden)]
pub use laravel_http::url::__private;
#[doc(inline)]
pub use laravel_http::url::{
InvalidSignature, RouteParam, RouteParams, route, signed_route, temporary_signed_route, to, vendor_asset,
};