Made it possible to sign up for events.
Added fail and success messages when signing up. Fixed unique keys in migrate
This commit is contained in:
@@ -6,5 +6,13 @@ 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'
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user