Skip to content

Instantly share code, notes, and snippets.

@josemiguelq
josemiguelq / PreviewOfUpcomingPackage.php
Created May 7, 2018 12:13 — forked from calebporzio/PreviewOfUpcomingPackage.php
A model trait that allows child models to use parent table names and relationship keys.
<?php
namespace App\Abilities;
use Illuminate\Support\Str;
use ReflectionClass;
/**
* Note: This is a preview of an upcoming package from Tighten.
**/