JokerFan JokerFan - 1 year ago 250
CSS Question

CSS not loading in Laravel 5.2


I'm creating a web application using Laravel, but for the moment CSS that i created aren't loading.

Folder Structure

enter image description here

Laravel Version

Laravel Framework version 5.2.36

master.blade.php code

<!doctype html>
<html lang="en">
<meta charset="UTF-8">
<link rel ="stylesheet" href= "{{ URL::secure('src/css/main.css') }}">
<div class="main">

Answer Source

Write like this:

<link rel ="stylesheet" href= "{{ asset('src/css/main.css') }}">
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download