phpvms/app/Models/UserAward.php
Nabeel S 23eb9dcbda
384 Laravel 6 changes (#385)
* 384 Laravel 6 changes

* Library versions

* Update package versions

* Add keyType to models

* Remove unused dependencies

* StyleCI fixes

* Fix models for test

* Fix tests output and update test runner

* Unused imports

* Update exceptions handler

* Fix login page
2019-09-13 08:05:02 -04:00

32 lines
559 B
PHP

<?php
namespace App\Models;
use App\Contracts\Model;
class UserAward extends Model
{
public $table = 'user_awards';
protected $fillable = [
'user_id',
'award_id',
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function award()
{
return $this->belongsTo(Award::class, 'award_id');
}
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function user()
{
return $this->belongsTo(User::class, 'user_id');
}
}