預設來說,Laravel 的 App\User 模型使用了 Authorizable trait,它提供了兩個方法: can 及 cannot 。這些方法使用起來相似於 Gate facade 提供的 allows 與 denies 方法 ...
確定! 回上一頁