user roles model and database relationships

This commit is contained in:
2018-11-05 09:18:47 -06:00
parent d7e0143e0d
commit 99af5b41cf
2 changed files with 22 additions and 0 deletions

18
app/Models/UserRole.php Normal file
View 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');
}
}