Answers for "asset function in laravel not working"

PHP
0

asset function in laravel not working

php artisan cache:clear
php artisan route:cache
php artisan config:cache
php artisan view:clear
Posted by: Guest on May-03-2021
0

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);
    }
}
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language