asset function in laravel not working

Solutions on MaxInterview for asset function in laravel not working by the best coders in the world

showing results for - "asset function in laravel not working"
Leticia
14 Jan 2018
1php artisan cache:clear
2php artisan route:cache
3php artisan config:cache
4php artisan view:clear
5
Angelina
08 May 2016
1if (! function_exists('asset')) {
2    /**
3     * Generate an asset path for the application.
4     *
5     * @param  string  $path
6     * @param  bool    $secure
7     * @return string
8     */
9    function asset($path, $secure = null)
10    {
11        return app('url')->asset("public/".$path, $secure);
12    }
13}
14