in resources folder and layouts/backend/ and i have main.blade.php file as master template and partials folder which that have some files such as sidebar, footer and etc, for example:
/layouts/backend/main.blade.php:
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
</head>
<body>
<!-- Footer -->
@yield('partials.footer')
<!-- /footer -->
</body>
</html>
/layouts/backend/partials/footer.blade.php:
@extends('layouts.backend')
@section('footer')
<div class="footer text-muted">Hello</div>
@endsection
after save and refreshing page i don't have footer on page
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire