From 7af18c65418027a4cc1cb9fe71f11489029c3912 Mon Sep 17 00:00:00 2001 From: Mateja Date: Fri, 6 Nov 2020 17:25:22 +0100 Subject: GalleryController, better news, using Bootstrap. --- app/Http/Controllers/GalleryController.php | 84 ++++++++++++++++++++++++++++++ app/Http/Controllers/PagesController.php | 5 -- app/Providers/AppServiceProvider.php | 3 +- resources/views/pages/news.blade.php | 11 ++-- routes/web.php | 5 +- 5 files changed, 95 insertions(+), 13 deletions(-) create mode 100644 app/Http/Controllers/GalleryController.php diff --git a/app/Http/Controllers/GalleryController.php b/app/Http/Controllers/GalleryController.php new file mode 100644 index 0000000..efbb55f --- /dev/null +++ b/app/Http/Controllers/GalleryController.php @@ -0,0 +1,84 @@ + -

{{ $post->title }}

- Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset -
-
{!! $post->text !!}
+
+
+

{{ $post->title }}

+
Published at {{ $post->created_at->format('Y-m-d') }}@isset ($post->author) by {{$post->author }}@endisset
+
{!! $post->text !!}
+
@endforeach @endsection() diff --git a/routes/web.php b/routes/web.php index aa5492b..7797a17 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,9 +1,10 @@ name('newsEdi Route::get('/news/delete/{id}', [NewsController::class, 'destroy'])->name('newsDelete')->middleware(['auth']); -Route::get('/gallery', [PagesController::class, 'gallery'])->name('gallery'); +Route::get('/gallery', [GalleryController::class, 'index'])->name('gallery'); Route::get('/special-calls', [ReservationsController::class, 'index'])->name('activities'); -- cgit v1.2.3