close

[Solved] How can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0?

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error How can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0? in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0 Error Occurs?

Today I get the following error How can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0? in php.

How To Solve can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0 Error ?

  1. How To Solve can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0 Error ?

    To Solve can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0 Error Use asset helper
    <script src="{{asset('js/main.js')}}"></script>

  2. How can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0?

    To Solve can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0 Error Use asset helper
    <script src="{{asset('js/main.js')}}"></script>

Solution 1

http://127.0.0.1:8000/entradas/1/comprar/1/detalle_ventaEntrada/200000/css/bootstrap.min.css

Here you can see your .css file is trying to load from this url, which is not correct.

Use laravel built in asset() function.

Which will point to public folder of your application so:

use asset('expamleFolder/bootstrap.js'), it will look for your bootstrap.js inside public/expamleFolder.

Note: always keep assets in public folder.


Replace this with old code

<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ asset('js/jquery.stellar.min.js') }}">

this is solution for that 2 error

Solution 2

Use asset helper

<script src="{{asset('js/main.js')}}"></script>

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment