摘要:
composer 安装JWT composer require firebase/php-jwt 首先在应用公共文件中引入JWT use Firebase\JWT\JWT; 创建token /** * 创建 token * @param array $data 必填 自定义参数数组 * @param 阅读全文
摘要:
//以下方法仅供参考1、返回上一页,不刷新history.html window.history.go(-1); javascript:window.history.go(-1) 2、返回上一页并刷新页面 avascript:location.replace(this.href);event.ret 阅读全文
摘要:
allowField 也可以直接带更新条件来更新数据 $user = new User; // save方法第二个参数为更新条件 $user->save([ 'name' => 'thinkphp', 'email' => 'thinkphp@qq.com' ],['id' => 1]); 如果需要 阅读全文