reworked migrations AGAIN and added relations to models
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use AdamWathan\EloquentOAuth\OAuthIdentity;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
|
||||
@@ -26,4 +27,22 @@ class User extends Authenticatable
|
||||
protected $hidden = [
|
||||
'password', 'remember_token',
|
||||
];
|
||||
|
||||
/** Owned tables */
|
||||
public function dataTables()
|
||||
{
|
||||
return $this->hasMany(DataTable::class);
|
||||
}
|
||||
|
||||
/** Assigned OAuth identities */
|
||||
public function socialIdentities()
|
||||
{
|
||||
return $this->hasMany(OAuthIdentity::class);
|
||||
}
|
||||
|
||||
/** Assigned OAuth identities */
|
||||
public function changesets()
|
||||
{
|
||||
return $this->hasMany(Changeset::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user