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:
Anders
2020-07-28 10:13:44 +02:00
parent dcc93ae40c
commit 80725dee12
4 changed files with 36 additions and 7 deletions
@@ -15,8 +15,8 @@ class CreateUserEventsTable extends Migration
{
Schema::create('user_events', function (Blueprint $table) {
$table->id();
$table->integer("user_id")->unique();
$table->integer("event_id")->unique();
$table->integer("user_id");
$table->integer("event_id");
$table->timestamps();