Skip to content

Instantly share code, notes, and snippets.

View artemrogov's full-sized avatar
🎯
Focusing

Artem Rogov artemrogov

🎯
Focusing
View GitHub Profile
@artemrogov
artemrogov / ext.txt
Created May 9, 2021 15:09 — forked from chronon/ext.txt
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import WidgetStateOrg from './bundle.js';
import WidgetAuth from './widget_auth';
export default class Widget1604 extends Component {
constructor(props, context) {
super(props, context);
@artemrogov
artemrogov / template-auth-laravel.txt
Created January 11, 2020 18:18
Шаблон Аутентификации Laravel 6
composer require laravel/ui --dev
php artisan ui vue --auth
@artemrogov
artemrogov / updateLaravelAndPassportComposer.json
Created January 11, 2020 17:52
Laravel and Passport 6/8
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
Материал по ReactJS:
#сринкасты от леарн js:
https://learn.javascript.ru/screencast/react#react-debugging-react-apps
https://es5.javascript.ru/#x10-toc
#Кэширование
https://habr.com/ru/company/oleg-bunin/blog/316652/
@artemrogov
artemrogov / dataTables.php
Created November 26, 2019 15:00
Преобразование
/**
Преобразование для DataTablesJs
для карты меню ГИСП ЛК
**/
class XMLMenuController extends Controller
{
public function uploadXMLMenu(Request $request)
@artemrogov
artemrogov / example_struct_menu.xml
Created November 15, 2019 12:07
example_struct_menu.xml
<?xml version="1.0" encoding="UTF-8"?>
<menu_table>
<menu>
<id>1573819329607</id>
<name>Главный раздел</name>
@artemrogov
artemrogov / header-widget.txt
Created November 13, 2019 20:56
Виджет cdn
материал по созданию виджета cdn
http://alexmarandon.com/articles/web_widget_jquery/
@artemrogov
artemrogov / passport_install.txt
Created November 13, 2019 20:43
установка passport
composer require paragonie/random_compat:2.*
composer require laravel/passport=~4.0
@artemrogov
artemrogov / tree-rec-delete.php
Created October 29, 2019 09:54
рекурсивное удаление элементов меню
/**
* рекурсивное удаление элементов меню
*/
public function destroyRecursive($id){
$parent = Menu::find($id);
$arrayOfIds = $this->getChildrenMenuDel($parent);
array_push($arrayOfIds,$id);
Menu::destroy($arrayOfIds); // этот стандарный метод моделей в ORM Eloquent который выполняет операцию удаления