Skip to content

Instantly share code, notes, and snippets.

@jobcerto
Created May 24, 2018 02:25
Show Gist options
  • Select an option

  • Save jobcerto/0ec0366fc7c9d281ef3f5fca7b43e9fa to your computer and use it in GitHub Desktop.

Select an option

Save jobcerto/0ec0366fc7c9d281ef3f5fca7b43e9fa to your computer and use it in GitHub Desktop.
<?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