-
app/Interfaces/Hashing.php
Open in GitHubinterface Hashing { public function hashID(); }
-
app/Models/ModelBindingHasher.php
Open in GitHubuse App\Traits\Hasher; use App\Interfaces\Hashing; abstract class ModelBindingHasher extends ModelBinding implements Hashing { use Hasher; }
-
app/Traits/Hasher.php
Open in GitHubtrait Hasher { // public function hashID() { return $this->getRouteKey(); } }