Browse Source

Fix Paste model and migration

master
Les De Ridder 5 years ago
parent
commit
f389161b79
  1. 2
      app/Paste.php
  2. 2
      database/migrations/2016_05_27_230057_create_pastes_table.php

2
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())
{

2
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');
});

Loading…
Cancel
Save