class UrlMaker

UrlMaker class

Properties

protected UrlGenerator $urlGenerator UrlGenerator instance
protected array $config Disk config array
protected string $routeName Route name

Methods

__construct(UrlGenerator $urlGenerator, array $config)

Constructor

string
url(File $file, Closure $callback = null)

get url src

string
route(File $file)

get route src

string
getUrl(File $file)

get file url path

array
getConfig(string $name)

get storage disk config

string
getRouteName()

Get route name

void
setRouteName(string $name)

Set route name

Details

at line 58
__construct(UrlGenerator $urlGenerator, array $config)

Constructor

Parameters

UrlGenerator $urlGenerator UrlGenerator instance
array $config Disk config array

at line 71
string url(File $file, Closure $callback = null)

get url src

Parameters

File $file file instance
Closure $callback callback function

Return Value

string

at line 88
string route(File $file)

get route src

Parameters

File $file file instance

Return Value

string

at line 99
protected string getUrl(File $file)

get file url path

Parameters

File $file file instance

Return Value

string

at line 118
protected array getConfig(string $name)

get storage disk config

Parameters

string $name disk name

Return Value

array

at line 128
string getRouteName()

Get route name

Return Value

string

at line 139
void setRouteName(string $name)

Set route name

Parameters

string $name route name

Return Value

void