19 lines
332 B
PHP
19 lines
332 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UserEvent extends Model
|
|
{
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
//protected variable which contains name of database field(s) to be filled.
|
|
protected $fillable = [
|
|
'user_id', 'event_id'
|
|
];
|
|
}
|