小编Ton*_*ony的帖子

展开 Laravel 堆栈跟踪

我在日志中收到如下所示的堆栈跟踪:

[2015-01-28 00:33:12] local.ERROR: exception 'ErrorException' with message 'preg_replace(): Parameter mismatch, pattern is a string while replacement is an array' in /vagrant/vendor/laravel/framework/src/Illuminate/Support/helpers.php:900
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleError(2, 'preg_replace():...', '/vagrant/vendor...', 900, Array)
#1 /vagrant/vendor/laravel/framework/src/Illuminate/Support/helpers.php(900): preg_replace('/\\?/', Array, 'update `company...', 1)
#2 /vagrant/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(55): str_replace_array('\\?', Array, 'update `company...')
#3 /vagrant/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(37): Illuminate\Database\QueryException->formatMessage('update `company...', Array, Object(ErrorException))
#4 /vagrant/vendor/laravel/framework/src/Illuminate/Database/Connection.php(627): Illuminate\Database\QueryException->__construct('update `company...', Array, Object(ErrorException))
#5 /vagrant/vendor/laravel/framework/src/Illuminate/Database/Connection.php(581): Illuminate\Database\Connection->runQueryCallback('update `company...', Array, Object(Closure))
#6 /vagrant/vendor/laravel/framework/src/Illuminate/Database/Connection.php(394): Illuminate\Database\Connection->run('update `company...', Array, Object(Closure))
#7 /vagrant/vendor/laravel/framework/src/Illuminate/Database/Connection.php(339): Illuminate\Database\Connection->affectingStatement('update `company...', Array)
#8 /vagrant/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(1911): Illuminate\Database\Connection->update('update `company...', Array)
#9 …
Run Code Online (Sandbox Code Playgroud)

php debugging xdebug laravel laravel-4

5
推荐指数
0
解决办法
1045
查看次数

GKE节点池自定义计算机类型CLI

是否可以gcloud container cluster create使用自定义计算机类型(https://cloud.google.com/compute/docs/instances/creating-instance-with-custom-machine-type)为GKE创建节点池?

我想创建一个具有4个vCPU和8 GB内存的实例,而不是n1-standard-1 / etc。

我知道这在UI中是可能的,但是我想将此gcloud命令包装在脚本中。

google-cloud-platform gcloud kubernetes google-kubernetes-engine

5
推荐指数
1
解决办法
1021
查看次数

为什么使用SendGrid(和其他服务)

我正在安装SendGrid PHP库,并注意到它还安装了swiftmailer。

那让我问为什么为什么使用SendGrid而不是SwiftMailer或其他库来发送电子邮件?

使用第三方电子邮件传递程序比使用库从服务器发送邮件有什么技术优势?

人们使用它进行分析还是在电子邮件传递链中提供保证?

提前致谢。

php api sendgrid

3
推荐指数
1
解决办法
2349
查看次数