Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // base.blade.php
- <html>
- <head>
- <style></style>
- <title>@section('page-title')
- Projekt z przedmiotu Technologie Obiektowe
- @show
- </title>
- </head>
- <body>
- <div class="container">
- <h1>@yield('title')</h1>
- <div class="row">
- @yield('content')
- </div>
- </div>
- </body>
- </html>
- // post.blade.php
- @extends('base')
- @section('page-title')Wpis {{ $post->title }}
- @section('title'){{ $post->title }}@endsection
- @section('content')
- {{ $post->content }}
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement