permissions systems 2.0

This commit is contained in:
2019-01-09 07:47:32 -06:00
parent 6fcb2d5edf
commit 21b4a7ce81
10 changed files with 121 additions and 65 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class UserRole extends Model
{
protected $table = 'users_role';
protected $fillable = [
'character_id',
'role',
];
public function user() {
return $this->belongsTo(User::class);
}
}