Skip to content

Instantly share code, notes, and snippets.

View adrianoGaspar's full-sized avatar
🎯
Focusing

Adriano Gaspar da Silva adrianoGaspar

🎯
Focusing
View GitHub Profile
@michelmany
michelmany / app.js
Last active April 22, 2023 00:42
Vue.js 2 Vee-validate (pt-br) CPF Validation
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VeeValidator, { Validator } from 'vee-validate'
import CpfValidator from './components/validators/cpf.validator'
import Dictionary from './components/validators/dictionary'
import Produto from './components/produtos.vue'
Validator.extend('cpf', CpfValidator)
@edomaru
edomaru / Laravel5-AJAX-Session-Expired-Checker.md
Last active February 3, 2023 08:47
Laravel AJAX Session Expired Checker

AJAX check session expired

  • Create a middleware

php artisan make:middleware AjaxSessionExpiredMiddleware

  • Open the AjaxSessionExpiredMiddleware and add following code:
<?php