Support the ongoing development of Laravel.io →
posted 8 years ago
Views
Last updated 4 months ago.
0
<link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}">
Last updated 4 months ago.
0

@AnasT No that is not working. BDW, i feel that is related to BLADE template code. But, i'm not using BLADE template. I'm just using plain PHP in my VIEW file.

Last updated 4 months ago.
0

It is Blade code, but it doesn't matter - echo it out. If it still doesn't work - you need to check the console in your browser and see why it's not loading.

<link rel="stylesheet" href="<?php echo asset('assets/css/bootstrap.min.css') ?>">

Laravel provides these helpers (see also HTML::style and HTML::script) to make life easier, you should use them!

Last updated 4 months ago.
0

@AndrewBNZ What a silly mistake i was doing. I'd just forget to include those 'echo' in my statements. Thanks a lot once again.

Last updated 4 months ago.
0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.