Skip to content

Instantly share code, notes, and snippets.

View Russkazkin's full-sized avatar
🏠
Working from home

Ruslan Skazkopodatelev Russkazkin

🏠
Working from home
View GitHub Profile
<?php
namespace App\Console\Commands;
use Illuminate\Foundation\Console\ModelMakeCommand as Command;
class ModelMakeCommand extends Command
{
protected function getDefaultNamespace($rootNamespace)
{
@Russkazkin
Russkazkin / SummernoteController.php
Last active July 22, 2020 12:09
laravel summernote backend
<?php
namespace App\Http\Controllers\Shared;
use App\Http\Controllers\Controller;
use App\Http\Requests\Summernote\SummernoteDeleteRequest;
use App\Http\Requests\Summernote\SummernoteUploadRequest;
use Storage;
class SummernoteController extends Controller
@Russkazkin
Russkazkin / edit.blade.php
Last active July 22, 2020 08:44
laravel sammernote frontend
@php
/**
* @var $post \App\Post
*/
@endphp
@extends('layouts.admin')
@section('content')
<div class="card card-default">
@Russkazkin
Russkazkin / webmin
Created July 13, 2020 13:09
nginx webmin config
server {
server_name your-domain.name;
access_log /var/log/nginx/webmin-access.log;
error_log /var/log/nginx/webmin-error.log;
location / {
proxy_pass http://127.0.0.1:10000/;
proxy_redirect http://$host:10000/ https://$host;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;