From 5a14dccdc0ef28c46168221da9582d50ec630ffb Mon Sep 17 00:00:00 2001 From: Doar Mihai Date: Sat, 30 May 2026 13:26:41 +0300 Subject: [PATCH] multiple fixes --- app/Http/Controllers/Controller.php | 2 +- app/Http/Controllers/LibraryController.php | 5 ----- app/Http/Controllers/ListController.php | 5 ----- resources/views/games/show.blade.php | 2 +- resources/views/lists/show.blade.php | 2 +- 5 files changed, 3 insertions(+), 13 deletions(-) diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index 8677cd5..4a02245 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -4,5 +4,5 @@ namespace App\Http\Controllers; abstract class Controller { - // + use \Illuminate\Foundation\Auth\Access\AuthorizesRequests; } diff --git a/app/Http/Controllers/LibraryController.php b/app/Http/Controllers/LibraryController.php index 932076b..afd4073 100644 --- a/app/Http/Controllers/LibraryController.php +++ b/app/Http/Controllers/LibraryController.php @@ -8,11 +8,6 @@ use Illuminate\Http\Request; class LibraryController extends Controller { - public function __construct() - { - $this->middleware('auth'); - } - public function store(Request $request) { $request->validate([ diff --git a/app/Http/Controllers/ListController.php b/app/Http/Controllers/ListController.php index 252bfa8..1cf491b 100644 --- a/app/Http/Controllers/ListController.php +++ b/app/Http/Controllers/ListController.php @@ -10,11 +10,6 @@ use Illuminate\Support\Str; class ListController extends Controller { - public function __construct() - { - $this->middleware('auth')->except('show'); - } - public function index() { $lists = auth()->user()->lists()->withCount('listGames')->latest()->get(); diff --git a/resources/views/games/show.blade.php b/resources/views/games/show.blade.php index 464a634..6ac6da6 100644 --- a/resources/views/games/show.blade.php +++ b/resources/views/games/show.blade.php @@ -483,7 +483,7 @@ {{-- Write / Edit Review Form --}} @auth