Skip to content

Access resources in public folder #6

@bahmanworld

Description

@bahmanworld

Hi

I got problem with accessing resources in laravel and electron.
GET http://127.0.0.1:8000/public/css/app.css net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1:8000/public/js/app.js net::ERR_ABORTED 404 (Not Found)

I tried to access asset files like css and js in public folder using {{ asset('public/css/app.css') }} function but i got error 404

I tried all these ways:
asset('public/css/app.css')
url('public/css/app.css')
mix('css/app.css')

example:
<link rel="stylesheet" href="{{ asset('public/css/app.css') }}" />

but same results

how can i access resources in public folder?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions