报错信息如下: 原因: .env文件配置中欧冠包含空格的配置信息,用双引号""引起来即可…
这是因为我们在 resources/views/layouts/app.blade.php 中使用 mix() 方法,而我们还未运行 Laravel Mix 进行编译,找不到 mix-manifest.json 文件,所以报错,没事接下来我们来解决这个问题. 运行 Laravel Mix Laravel Mix 一款前端任务自动化管理工具,使用了工作流的模式对制定好的任务依次执行.Mix 提供了简洁流畅的 API,让你能够为你的 Laravel 应用定义 Webpack 编译任务.Mix 支持许…
报错:「Can't swap PDO instance while within transaction」 transactions >= 1) {throw new RuntimeException("Can't swap PDO instance while within transaction.");}$this->pdo = $pdo;return $this;}?> 报错:「Cannot delete job : NOT_FOUND」 报错:「No quer…
明明没有设置redis密码.访问时候却报错 在代码里面的databases.php 改成这样就可以了.predis新版也会有取不到passwor的时候.改成我截图那样也可以.他默认取的是default里面的值.如果有密码.加上在default里面的就行了…
nginx: 在phpstudy中运行Laravel一键安装包时报错:Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length(),产生错误的原因是没开启php_openssl扩展,开启即可. apache: 检查http.conf   LoadModule ssl_module modules/mod_ssl.so php.ini开启extension=php_openssl.dll 将php7.1要目录…
大概的信息就是提示让登陆github,然后就报错了 Could not fetch https://api.github.com/authorizations, enter your GitHub credentials to go over the API rate limit The credentials will be swapped for an OAuth token stored in /Users/username/.composer/auth.json, your passwo…
问题解决方法 执行命令 php artisan cache:clear 并赋予 /storage 文件夹读写权限: chmod -R 777 storage: 若在执行 php artisan cache:clear 时出现错误:Uncaught UnexpectedValueException: The stream or file "/storage/logs/laravel.log" could not be opened: failed to open stream: Perm…
使用报错:Unable to detect application namespace. 是conposer.json格式不对…
报这种错误是因为没有设置白名单或者黑名单.在使用fill填充时,需要设置白/黑名单. $model->fill($params);return $model->save(); 找到对应的model,设置白名单,类似如下代码就可以了: protected $fillable = ['name', 'phone', 'comment'];  有白名单,自然就有黑名单: protected $guarded = ['id', 'user_id','created_at', 'updated_at']…