I'm using Laravel 5.4. in my routes folder in web.php I have written the code below:
Route::get('test', function () {
return view('test');
});
And also I have created test.blade.php inside resources/views. in this file i have a simple layout:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Testing Bootstrap</title>
</head>
<body>
<div class="container bg-danger">
<p>This is a paragraph</p>
</div>
</body>
</html>
In order to access this page I simply use localhost:8000/test url.
the page loads successfully, but bootstrap classes like container and bg-danger are not affected. why? How can I use bootstrap features inside a laravel blade template?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire