PHP Snippet 1:
<link href="{{ asset('public/css/app.css') }}" rel="stylesheet">
PHP Snippet 2:
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);
}
}
PHP Snippet 3:
ASSET_URL=public
PHP Snippet 4:
ASSET_URL=public/
PHP Snippet 5:
ASSET_URL=/public
PHP Snippet 6:
ASSET_URL=public
PHP Snippet 7:
ASSET_URL="${APP_URL}"
PHP Snippet 8:
<link href="{{ asset('/css/style.css') }}" rel="stylesheet">
PHP Snippet 9:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
PHP Snippet 10:
<link href="{{ asset('public/css/style.css') }}" rel="stylesheet">
PHP Snippet 11:
ASSET_URL=http://localhost/projectname/public
PHP Snippet 12:
<link href="{{ asset('/css/style.css') }}" rel="stylesheet">