View
Latihan praktik Latihan layout & section Buat file layout di resoureces/views/layouts/app.blade.php lalu isikan kode berikut: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 <html> <head> <title>App Name - @yield('title')</title> <!-- BOOTSTRAP CSS --> <link rel="stylesheet" href=" https :// maxcdn . bootstrapcdn . com / bootstrap / 4 . 0 . 0 / css / bootstrap . min . css " integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" /> </head> <body> @section('navbar') Navbar dari Layout <hr /> @show <div class="container"> @yield('content') </div> </body> </html> Setelah itu buat file view yang akan menggunakan layout di atas pada resources/views/child.blade.php dan isikan kode berikut: 1 2 3 4 5 @extends("l...