Take a look at the source:
function asset($path, $secure = null)
{
return app('url')->asset($path, $secure);
}
The app() function returns a class from the IoC container, in this case, a UrlGenerator instance.
Thank you! It is starting to make sense now!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community