更新链接表条目

问题描述

所以,我有3张桌子:

“玩家统计数据”引用“玩家”和“玩家统计数据类型”,并具有“值”列(评分)

我想为每个“玩家”创建/更新屏幕,其中列出了所有“玩家统计信息类型”并允许您对其进行编辑。

可以通过标准的“ PlayerCrudController”方法实现,还是必须创建一个自定义的Crud屏幕(就像我在“ show”屏幕中所做的那样)

这是“ player_stats”迁移:

            $table->id();
            $table->unsignedBigInteger('player_id');
            $table->unsignedBigInteger('player_stat_type_id');

            $table->unsignedDecimal('rating',3,1)->default(0);

            $table->timestamps();
            $table->softDeletes();

            $table->foreign('player_id')->references('id')->on('players');
            $table->foreign('player_stat_type_id')->references('id')->on('player_stat_types');

..还是我应该去新星或木星? :)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)