diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index acbc4b2..2c02550 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -150,6 +150,8 @@ + +@if ($news->count())
@@ -167,9 +169,10 @@
+
- @if ($news->count()) + @foreach ($news as $new)
@@ -183,13 +186,16 @@
@endforeach - @endif +
Все новости +
+@endif +
diff --git a/routes/web.php b/routes/web.php index 2528e73..9ead850 100644 --- a/routes/web.php +++ b/routes/web.php @@ -46,6 +46,7 @@ Route::get('/', function () { return view('welcome'); })->name('index'); */ + Route::get('/', [MainController::class, 'index'])->name('index'); //Роуты авторизации, регистрации, восстановления, аутентификации