"config": {
"platform": {
"php": "5.6"
}
}
slow_query_log
[mysqld]
$validator->after(function ($validator) use ($request, $current_item) {
if (Items::where('id', '!=', $current_item['id'])->where('source_id', $request->input('source_id'))->where('text', $request->input('text'))->exists()) {
$validator->errors()->add('source_id', 'Ошибка уникальности сочетания source_id и text');
}
});
$table->unique(['source_id', 'text']);
$client->setOptions([CURLOPT_TIMEOUT => 5]);
$result = $client->get('http://example.com');
echo $result->hasError() ? 'ERROR' : $result->getBody();
gulp.task('jade', function () {
return gulp.src('public/**/*.jade')
.pipe(gulpJade({
jade: jade,
pretty: true
}))
.pipe(gulp.dest('public/'))
})