“ativo não está trabalhando em Laravel” Respostas de código

ativo não está trabalhando em Laravel

Add this in your .htaccess file

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ ^$1 [N]

    RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
    RewriteRule ^(.*)$ public/$1 

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php
</IfModule>
nk jangid

Função de ativos em Laravel não funcionando

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

Função de ativos em Laravel não funcionando

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);
    }
}
Thoughtful Toucan

Respostas semelhantes a “ativo não está trabalhando em Laravel”

Perguntas semelhantes a “ativo não está trabalhando em Laravel”

Mais respostas relacionadas para “ativo não está trabalhando em Laravel” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código