Commit 529d4fe1 authored by Jack Stupple's avatar Jack Stupple

characters are not different per langage as all data is stored in the translation file

parent 08fe4eb5
......@@ -7,10 +7,9 @@ use Illuminate\Http\Request;
class CharacterController extends Controller
public function index(Request $request)
public function index()
$player = get_player($request);
return Character::where('language_id', $player ? $player->language_id : \App\Language::where('slug', 'en')->first()->id)->with([
return Character::with([
......@@ -273,7 +273,6 @@ class Initial extends Migration
function (Blueprint $blueprint) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment