Skip to content

Instantly share code, notes, and snippets.

@wgmv
wgmv / .gitignore
Created January 8, 2022 15:15 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
<?php
namespace App\Traits;
use Validator;
trait ValidatesOnSave
{
protected static function bootValidatesOnSave()
{