Skip to content

Instantly share code, notes, and snippets.

View mgussekloo's full-sized avatar

Martijn Gussekloo mgussekloo

View GitHub Profile
@mgussekloo
mgussekloo / webpack.mix.js
Created April 20, 2020 08:56 — forked from viirre/webpack.mix.js
Using different Tailwind config files (eg. one for admin and one for front) for Laravel Mix
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
mix
.js('resources/js/admin/admin.js', 'public/js')
.js('resources/js/front/front.js', 'public/js')
// Admin
.sass(
@mgussekloo
mgussekloo / after.sh
Created April 25, 2018 09:29 — forked from berkayunal/after.sh
Laravel Homestead after.sh placed in ~/.homestead/after.sh
#!/bin/sh
# If you would like to do some extra provisioning you may
# add any commands you wish to this file and they will
# be run after the Homestead machine is provisioned.
echo "Updating machine software"
locale-gen en_GB.UTF-8
# Updating composer
@mgussekloo
mgussekloo / gist:48b2238ae14532114064dbf27a647157
Created November 16, 2017 11:12 — forked from anonymous/gist:f5eb359a7b140fd94da4e111a57c928e
WP Admin pass protect on Laravel Forge
location ~ ^/(wp-admin)/ {
auth_basic "Restricted Access";
auth_basic_user_file /home/forge/domain/.htpasswd;
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}