A lot of things.

This commit is contained in:
2026-06-08 16:25:52 +02:00
parent 6f6d6b9b84
commit f529f74823
94 changed files with 9178 additions and 107 deletions

View File

@@ -18,6 +18,11 @@ class EntryController extends Controller
return view('entries.index');
}
public function section_redirect(string $section)
{
return redirect( databaseRoute( ['types' => [ $section ] ] ) );
}
public function show(string $section, Entry $entry): View
{
if (!in_array($section, self::SECTION_TYPES))
@@ -48,4 +53,15 @@ class EntryController extends Controller
}
public function drafts(): View
{
$drafts = Entry::where('user_id', \Auth::user()->user_id )
->where('state', 'draft')
->with('game.platform', 'status')
->orderBy('updated_at', 'desc')
->paginate(20);
return view('entries.drafts', compact('drafts'));
}
}