Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Östlund jannejava

View GitHub Profile
@jannejava
jannejava / .php_cs
Created Aug 28, 2018
PHPCS Fixer for VSCode and Laravel
View .php_cs
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'binary_operator_spaces' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_return' => true,
'braces' => true,
View LaravelValetImageCacheDriver.php
<?php
class MyValetDriver extends ValetDriver
{
protected $cacheUri = '/images/';
protected $cachePath = '/image-cache';
/**
* Determine if the driver serves the request.
*
View gist:3b9fd2750b32a4a3358c3a70b4431f90
# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/mydomain.com/before/*;
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mydomain.com;
root /home/forge/mydomain.com/;
# FORGE SSL (DO NOT REMOVE!)