Laravel can't find my assets on production

Posted 1 year ago by ramonpego

Hello, i have an application on production made on laravel, but all my assets on public paste, laravel can't find using {{asset()}} or {{url()}}.

My host is limited i can't use ssh, i cant install composer, i can't run composer dump-autoload etc.

My application does not work perfectly, i had to import using normal tags href="../../foo/bar.jpg"

But values from database doesn't work

What i can do to solve this. I read about its possible wrong because my htaccess it's wrong but i can't solve, here's my htaccess

Options -MultiViews -Indexes

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Please sign in or create an account to participate in this conversation.