From 61050ada15169ce9acfc846940343f8eecebbcc2 Mon Sep 17 00:00:00 2001 From: "p.sterz" Date: Fri, 21 Jul 2023 12:39:11 +0200 Subject: [PATCH] Setting up + routing the page --- .../BooksForPlebs/BookRentalGuide.php | 13 +++++++++++ ...22_12_07_122722_create_comments_tables.php | 2 +- .../book-rental-guide.blade.php | 22 +++++++++++++++++++ .../frontend/navigation/library.blade.php | 6 +++++ routes/web.php | 4 ++++ 5 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 app/Http/Livewire/BooksForPlebs/BookRentalGuide.php create mode 100644 resources/views/livewire/books-for-plebs/book-rental-guide.blade.php diff --git a/app/Http/Livewire/BooksForPlebs/BookRentalGuide.php b/app/Http/Livewire/BooksForPlebs/BookRentalGuide.php new file mode 100644 index 00000000..a72ae022 --- /dev/null +++ b/app/Http/Livewire/BooksForPlebs/BookRentalGuide.php @@ -0,0 +1,13 @@ +id(); $this->nullableMorphs($table, 'commentator', 'commentator_reactions'); $table->foreignId('comment_id')->references('id')->on('comments')->cascadeOnDelete(); - $table->string('reaction')->collation('C.UTF-8'); + $table->string('reaction'); $table->timestamps(); }); diff --git a/resources/views/livewire/books-for-plebs/book-rental-guide.blade.php b/resources/views/livewire/books-for-plebs/book-rental-guide.blade.php new file mode 100644 index 00000000..9bcffa82 --- /dev/null +++ b/resources/views/livewire/books-for-plebs/book-rental-guide.blade.php @@ -0,0 +1,22 @@ +
+

Test

+
+ +
+ + + +
+ +
+

Test

+

Test

+

Test

+

Test

+
+ +
+ + +
+ diff --git a/resources/views/livewire/frontend/navigation/library.blade.php b/resources/views/livewire/frontend/navigation/library.blade.php index 7563784a..08203167 100644 --- a/resources/views/livewire/frontend/navigation/library.blade.php +++ b/resources/views/livewire/frontend/navigation/library.blade.php @@ -51,6 +51,12 @@ {{ __('Bücher') }} + + + {{ __('Bücherverleih') }} + + diff --git a/routes/web.php b/routes/web.php index 344849f2..460cc641 100644 --- a/routes/web.php +++ b/routes/web.php @@ -20,6 +20,10 @@ Route::middleware([]) ->get('/kaninchenbau', \App\Http\Livewire\Helper\FollowTheRabbit::class) ->name('kaninchenbau'); +Route::middleware([]) + ->get('/buecherverleih', \App\Http\Livewire\BooksForPlebs\BookRentalGuide::class) + ->name('buecherverleih'); + Route::get('/img/{path}', \App\Http\Controllers\ImageController::class) ->where('path', '.*') ->name('img');