Reputation: 5703
Situation:
I'm creating a web application using Laravel, but for the moment CSS that i created aren't loading.
Folder Structure
Laravel Version
Laravel Framework version 5.2.36
master.blade.php code
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>@yield('title')</title>
<link rel ="stylesheet" href= "{{ URL::secure('src/css/main.css') }}">
@yield('styles')
</head>
<body>
@include('includes.header')
<div class="main">
@yield('content')
</div>
</body>
</html>
Upvotes: 0
Views: 510
Reputation: 6539
Another alternative:-
<link rel="stylesheet" href="{{ url('/') }}./src/css/main.css" type="text/css"/>
Upvotes: 3
Reputation: 1013
Write like this:
<link rel ="stylesheet" href= "{{ asset('src/css/main.css') }}">
Upvotes: 5