PHPnews.io

Refactor to a BelongsToTenant Trait

Written by Laracasts / Original link on Oct. 16, 2020

Let's clean up this implementation a bit by writing some tests and then refactoring all the code within the Model stub to a BelongsToTenant trait.

laracasts

« Use TailwindUI for the Public Pages - Weekly Update 213 »