is that bladefile code above the user.productpage blade code?
can you try
return view('user.productpage',
compact( 'post')
);
also, if you are using webpack, it uses scss and compiles to public / css /app.css if that is the case in your app make sure your blade file is loading the css <link href="{{ asset('css/app.css') }}" rel="stylesheet"> or better <link rel="stylesheet" href="{{ mix('/css/app.css') }}">
Hope this might work it out smoothly. As it is so hard to manage and control the controller, happy wheels free
This was a silly mistake i had done when referencing stylesheets,script files.I had referenced without specifying the resource directory.
<link href="css/styles.css" rel="stylesheet">
//rather
<link href="/css/styles.css" rel="stylesheet">
what this does is the browser tries to access the resources in
http://css/styles.css
but the resources are saved in the public folder so we should specify that css folder is a directory in the public folder so it would access
http://mysite.io/css/styles.css
most of the time this scenario works fine in the localhost but when you try emailing or upload to the server you get this tricky error.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community