Created
May 24, 2018 02:25
-
-
Save jobcerto/0ec0366fc7c9d281ef3f5fca7b43e9fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Customer\Models; | |
| use App\Shared\Models\User as Shared; | |
| use Hyn\Tenancy\Traits\UsesTenantConnection; | |
| class User extends Shared | |
| { | |
| use UsesTenantConnection; | |
| protected $with = ['posts']; | |
| public function posts() | |
| { | |
| return $this->hasMany(\App\Customer\Models\Post::class); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment