SS
Size: a a a
SS
SS
RK
MP
SS
SS
MP
RK
V
RK
V
server {
root /var/www/site/public;
index index.php index.html index.htm;
server_name site.com;
listen 80;
client_max_body_size 100M;
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
RK
RK
RK
FL
$rows = SomeModel::query()->where()->orderBy()->get();->
foreach($rows as $row) {
...
}
DB::transaction(function () {
$rows = SomeModel::query()->where()->orderBy()->get();
foreach($rows as $row) {
...
}
});
RK
V
V
RK