Completed
Push — master ( 5646fd...79e13b )
by Elf
01:26
created

asset.php ➔ asset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
if (! function_exists('asset')) {
4
    /**
5
     * Generate the URL to an application asset.
6
     *
7
     * @param  string  $path
8
     * @param  bool    $secure
9
     * @return string
10
     */
11
    function asset($path, $secure = null)
12
    {
13
        return app('url')->assetFrom(app('apps')->root('assets'), $path, $secure);
14
    }
15
}
16