relationships
This commit is contained in:
18
app/Models/UserRole.php
Normal file
18
app/Models/UserRole.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class UserRole extends Model
|
||||
{
|
||||
// Table Name
|
||||
protected $table = 'user_roles';
|
||||
|
||||
// Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
public function user() {
|
||||
return $this->belongsTo('App\User', 'character_id', 'user_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user