Skip to content

Instantly share code, notes, and snippets.

View vasil4enko-vs's full-sized avatar

vasil4enko-vs

View GitHub Profile
## Имя элементов с типом group должно заканчиватся на _group_onwer
class Helpers
{
public static function multiFields($data, $index = 0, $parent = [])
{
$prepare = [];
if (is_array($data)) {
foreach ($data as $key => $item) {

#Laravel Routing, Request, Response, Validator

Ajax №5 или Laravel Routes для кастомных роутов и аякс запросов

Очень долгая история с вопросом как же правильно рабатать с Ajax в Evo вот методы которые предлагались ранеее:

В Evo 3.0 предлагаем поставить точку в выборе правильного решения через Laravel Routes

@0test
0test / gist:2c897070bb07cab08b50c2aafe6631b8
Created August 28, 2019 09:24
Prepare editDocs and set multitv values
<?php
$process = isset($process) ? $process : '';
$mode = isset($mode) ? $mode : '';
switch ($process) {
case 'import':
//обработчик импорта
switch ($mode) {
case 'upd':
//обновляем ресурс
$data['img'] = 'assets/images/products/' . $data['art'] . '/' . $data['art'] . '.jpg';
@benediktg
benediktg / pam_kwallet-guide.md
Last active September 17, 2025 06:28
Short guide for pam_kwallet with KDE Plasma 5 on openSUSE

(based on these two blog entries and inspired by Fedora-Blog)

First install pam_kwallet:

sudo zypper in pam_kwallet

Then edit the files /etc/pam.d/passwd, /etc/pam.d/login and /etc/pam.d/sddm as follows, i.e. add the lines beginning with a - (the hyphens are valid PAM syntax to reduce log entries if these PAM modules should not exist) and ending with the ### comment:

/etc/pam.d/passwd :