Uni-App封装uni.request()请求

1、request.js文件function request({ url, method, isAuth, data, isShowLoading = true }) { return ...

Uni-App采用history模式Nginx部署报404错误

nginx需做如下配置:(以h5目录做为二级目录为例)server { listen 80; server_name www.xxx.com; root /Use...

Laravel 模型追加自定义字段

1、追加字段名protected $appends = ['real_status'];2、编写追加字段的获取器public function getRealStatusAttribute() { ... ...

Laravel 使用file方法访问上传文件提示Call to a member function store() on null

Laravel 使用file方法访问上传文件时报错:Call to a member function store() on null解决方法:在file方法中指定请求参数名称$path = request()->file('v...

Laravel 接口返回Route [login] not defined

laravel使用jwt重定向login报错Route [login] not defined解决方法:在routes中给login加上路由命名Route::get('login', 'Api\AuthController@login...

导入SQL文件MySQL报1418错误的解决办法

MySQL导入时报错[ERR] 1418 - This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and bina...

Laravel 8 JWT身份验证

1、安装jwt-authcomposer require tymon/jwt-auth2、发布生成配置文件php artisan vendor:publish --provider="Tymon\JWTAuth\Provid...

Laravel 8 报异常Illuminate\Contracts\Container\BindingResolutionException Target class does not exist.

升级Laravel8.45新版后,报异常Illuminate\Contracts\Container\BindingResolutionException Target class does not exist.原因如下:Larave...

SpringBoot连接Sqlserver

1、pom.xml添加sqlserver驱动依赖 <dependency> <groupId>com.microsoft.sqlserver</groupId>...