Skip to content

Instantly share code, notes, and snippets.

View marcnewton's full-sized avatar
💭
Maaad busy programming.

Marc Newton marcnewton

💭
Maaad busy programming.
View GitHub Profile
@marcnewton
marcnewton / .eslint.js
Last active January 4, 2021 13:17
ESLint Vuetify Config
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/standard',
'vuetify',
],
@marcnewton
marcnewton / _SetLocaleAcceptLanguage.php.md
Last active January 12, 2021 11:10
Laravel Middleware Accept-Language to setLocale
@marcnewton
marcnewton / InternationalString.php
Last active January 8, 2020 12:12
Laravel International String Validation
<?php
/**
* Author: Marc Newton <code@marcnewton.co.uk>
* Link: https://gist.github.com/marcnewton/37e7d07a962bf7eb8f2eef38626e6812
*
* Laravel custom validation rule.
* Pattern match for checking strings only contain alphabetical characters from various launguage writing systems.
*
* Accepts additional custom appended regex syntax.