JokerFan JokerFan - 1 year ago 135
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">


Write like this:

<link rel ="stylesheet" href= "{{ asset('src/css/main.css') }}">