diff --git a/app/Paste.php b/app/Paste.php index a9e6ba9..c698f16 100644 --- a/app/Paste.php +++ b/app/Paste.php @@ -19,7 +19,7 @@ class Paste extends Model return $this->deletion !== null; } - public function delete($reason, $deleted_by) + public function soft_delete($reason, $deleted_by) { if($this->isDeleted()) { diff --git a/database/migrations/2016_05_27_230057_create_pastes_table.php b/database/migrations/2016_05_27_230057_create_pastes_table.php index e65cf92..0c114c5 100644 --- a/database/migrations/2016_05_27_230057_create_pastes_table.php +++ b/database/migrations/2016_05_27_230057_create_pastes_table.php @@ -16,7 +16,7 @@ class CreatePastesTable extends Migration $table->char('id', 6); $table->string('language'); $table->timestamp('created_at'); - $table->timestamp('expires_at'); + $table->timestamp('expires_at')->nullable(); $table->primary('id'); });