Create model and migration for spaces
ADD
app/Space.php
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+use Illuminate\Database\Eloquent\SoftDeletes;
+
+class Space extends Model {
+ use SoftDeletes;
+
+ protected $dates = ['deleted_at'];
+}

ADD
database/migrations/2018_10_02_185825_create_spaces_table.php
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateSpacesTable extends Migration {
+ public function up() {
+ Schema::create('spaces', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('name');
+ $table->timestamps();
+ $table->softDeletes();
+ });
+ }
+
+ public function down() {
+ Schema::dropIfExists('spaces');
+ }
+}

Create model and migration for spaces