Skip to content

Instantly share code, notes, and snippets.

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

Ivan porozhnyy

🏠
Working from home
View GitHub Profile
@porozhnyy
porozhnyy / MyEntity.php
Last active July 20, 2018 14:51
Laravel-doctrine odm
<?php
use ObjectNormalizer; //see https://github.com/Hunternnm/laravel-doctrine-odm/blob/master/src/ObjectNormalizer.php
use Symfony\Component\Serializer\NameConverter\CamelCaseToSnakeCaseNameConverter;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer as BaseObjectNormalizer;
class MyEntity
{
@porozhnyy
porozhnyy / laravel.json
Created February 12, 2018 13:21
Nginx conf for laravel using unit
{
"listeners": {
"*:8300": {
"application": "beauty"
}
},
"applications": {
"beauty": {
"type": "php",
"processes": 20,
@porozhnyy
porozhnyy / nginx.conf
Last active November 25, 2019 11:14
Laravel nginx http2 config
server {
listen 80;
server_name bb;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
gzip on;