server {
charset utf-8;
client_max_body_size 128M;
listen 80;
root /home/ruslan/Development/rsi/backend/web;
index index.php;
server_name admin.rsi.local;
access_log /home/ruslan/Development/rsi/vagrant/nginx/log/backend-access.log;
error_log /home/ruslan/Development/rsi/vagrant/nginx/log/backend-error.log;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
}
let search = this.search.toLowerCase();
Object.keys(item).some(s => {
if (
s === "last_name" ||
s === "name" ||
s === "patronymic" ||
s === "phone" ||
s === "email"
) {
return (
String(item[s])
.toLowerCase()
.indexOf(search) > -1
);
}
})
<li class="page-item" v-for="pageNumber in pagesSlice"><a class="page-link" @click.prevent="page = pageNumber; pagePagination(page, perPage)">{{ pageNumber }}</a></li>
computed: {
pagesSlice: function() {
let startNumber = 0;
if(this.page === 1){
startNumber = 1
} else {
startNumber = 2
}
return this.pages.slice(this.page - startNumber, this.page + 2);
}
},
methods: {
actionColumns(name, result){
this.$emit('actionColumns', {name: name, disabled: !result})
}
Header [Content-type] was found, but value [text/html; charset=UTF-8] does not match [application/json;charset=utf-8].
Failed asserting that two strings are equal.
Expected :'application/json;charset=utf-8'
Actual :'text/html; charset=UTF-8'
<?php
return [
'default' => env('DB_CONNECTION', 'pgsql'),
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
],
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'testing' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'test_database'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
'schema' => 'public',
'sslmode' => 'prefer',
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'prefix' => '',
],
],
'migrations' => 'migrations',
'redis' => [
'client' => 'predis',
'default' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_DB', 0),
],
'cache' => [
'host' => env('REDIS_HOST', '127.0.0.1'),
'password' => env('REDIS_PASSWORD', null),
'port' => env('REDIS_PORT', 6379),
'database' => env('REDIS_CACHE_DB', 1),
],
],
];
Header [Content-type] was found, but value [text/html; charset=UTF-8] does not match [application/json; charset=utf-8].
Failed asserting that two strings are equal.
Expected :'application/json; charset=utf-8'
Actual :'text/html; charset=UTF-8'
->assertHeader('Content-type', 'application/json; charset=utf-8')