masterhunter
masterhunter

Reputation: 559

Laravel structure broken after deploying in shared host

i am deploying my project to shared hosting now. But i found that all the css file seem like not in correct directory. For example my original code is <link href="{{ asset('intro/css/style.css') }}" rel="stylesheet" type="text/css">

In server i need to change it to <link href="public/intro/css/style.css" rel="stylesheet" type="text/css"> in order to make it work. But i having thousand of line need to change if i had to update all. Is there others way to do it? I am using Cpanel and my file is located in public_html.

Upvotes: -1

Views: 240

Answers (1)

Ketan Akbari
Ketan Akbari

Reputation: 11267

Try this

<link href="{{URL:: asset('intro/css/style.css') }}" rel="stylesheet" type="text/css">

Upvotes: 1

Related Questions