add container soft deletes

This commit is contained in:
j3d1 2019-11-29 00:53:59 +01:00
parent acf701da70
commit 7ee5cce817
2 changed files with 32 additions and 1 deletions

View file

@ -3,10 +3,11 @@
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Container extends Model
{
use SoftDeletes;
/**
* The attributes that are mass assignable.
*

View file

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class ContainerAddSoftDeletes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('containers', function (Blueprint $table) {
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}