@@ -0,0 +1,8 @@
+
+@extends("layouts.app")
+@section("title", "Главная страница")
+@section("content")
+ <b>Здесь контент</b>
+@endsection
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>LaravelDemo - @yield('title')</title>
+ <style>
+ body {
+ font-family: sans-serif;
+ font-size: 16px;
+ }
+ .container {
+ max-width: 48rem;
+ margin: 0px auto;
+ </style>
+ </head>
+ <body>
+ <div class="container">
+ @yield('content')
+ </div>
+ </body>
+</html>
@@ -13,6 +13,4 @@ use Illuminate\Support\Facades\Route;
|
*/
-Route::get('/', function () {
- return view('welcome');
-});
+Route::view('/', 'index');