編輯 app/User.php ,加入三種帳號角色名稱的常數字串,並將 role 這個欄位加入 fillable 中: class User extends Authenticatable { // ... const ROLE_ADMIN = 'admin ...
確定! 回上一頁