asset not working in laravel

52

asset function in laravel not working -

php artisan cache:clear
php artisan route:cache
php artisan config:cache
php artisan view:clear

asset function in laravel not working -

if (! function_exists('asset')) {
    /**
     * Generate an asset path for the application.
     *
     * @param  string  $path
     * @param  bool    $secure
     * @return string
     */
    function asset($path, $secure = null)
    {
        return app('url')->asset("public/".$path, $secure);
    }
}

Comments

Submit
0 Comments