1
0
forked from metin2/web

Localized and coded character listing, view structure refactoring

This commit is contained in:
2024-12-31 20:33:17 +02:00
parent 103d21b5ef
commit b81cdd512f
11 changed files with 233 additions and 49 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace App\Http\Controllers\User;
use App\Http\Controllers\Controller;
use App\Models\Game\Player\Player;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\View;
class CharactersController extends Controller
{
public function show(): View
{
$characters = Player::where('account_id', Auth::user()->id)->get();
return view('user/characters', [
'characters' => $characters
]);
}
}