Files
w4rpservices/app/Models/User/UserRole.php

29 lines
463 B
PHP

<?php
namespace App\Models\User;
use Illuminate\Database\Eloquent\Model;
class UserRole extends Model
{
// Table Name
protected $table = 'user_roles';
// Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'role',
];
public function user() {
return $this->belongsTo(User::class);
}
}