From 7221f44e4a3376c79eb0f54c7b96f2bc438ca4bc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 15 Apr 2018 19:18:59 -0600 Subject: [PATCH] Add status model, migration, controller --- app/Http/Controllers/StatusController.php | 10 ++++++ app/Status.php | 10 ++++++ ...018_04_16_005848_create_statuses_table.php | 34 +++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 app/Http/Controllers/StatusController.php create mode 100644 app/Status.php create mode 100644 database/migrations/2018_04_16_005848_create_statuses_table.php diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php new file mode 100644 index 00000000..15a2b9a1 --- /dev/null +++ b/app/Http/Controllers/StatusController.php @@ -0,0 +1,10 @@ +increments('id'); + $table->unsignedInteger('profile_id')->nullable(); + $table->string('caption')->nullable(); + $table->boolean('is_nsfw')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('statuses'); + } +}