i have the following hierarchy in my assets folder
public>> assets >> frontend >> images>> 1.jpg
my code is
<img src="{{asset('frontend/images/players/1.jpg')}}" alt="location-team">
but i am getting 404 error whats wrong with this
asset() helper looks at public folder only. So you can grab an asset by calling asset('css/app.css') for example.
In your case, you created an assets directory and inside you nested a couple more directories... so you clearly must specify full path to the asset.
If you feel like it's a bit too much to write, you could always create your own little helper function that will look into public/assets/frontend/ for example.