ci4_jwt
1.0.0
請按照我的說明:
步驟1-克隆項目
git克隆https://github.com/wildanfuady/codeigniter-4-auth-with-jwt.git
步驟2-創建數據庫
請創建一個名為ci4_auth_jwt的數據庫
步驟3-配置環境
將.env.example文件重命名為.env
步驟4-遷移表用戶
通過終端遵循此命令:
PHP火花遷移
步驟5-測試
通過終端遵循此命令:
PHP火花服務
然後使用Post方法打開Postman軟件。
註冊URL:
Localhost:8080/auth/註冊
登入:
Localhost:8080/auth/登錄
家:
Localhost:8080/Home
訪問房屋時,必須在標題中包含一個令牌並使用Get方法。
享受!
https://ilmucoding.com/教程
來源https://github.com/wildanfuady/codeigniter-4-auth-with-jwt.git