laravel asset
// To access laravel assets
asset('sp-icon/Vodacom-Original.svg')
// To echo the value use braces
{{ asset('you-are-in-public/your-file-name') }}
laravel asset
// To access laravel assets
asset('sp-icon/Vodacom-Original.svg')
// To echo the value use braces
{{ asset('you-are-in-public/your-file-name') }}
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);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us