相反,可使用每個枚舉類所繼承基類的 getDescription 方法。 在blade 模板上的操作如下: <p>{{ \App\Enums\UserType::getDescription($user->type) }} ...
確定! 回上一頁