Create Idea model and it's migration
ADD
app/Idea.php
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+
+class Idea extends Model {
+ //
+}

ADD
database/migrations/2018_11_06_201307_create_ideas_table.php
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateIdeasTable extends Migration {
+ public function up() {
+ Schema::create('ideas', function (Blueprint $table) {
+ $table->increments('id');
+ $table->unsignedInteger('user_id');
+ $table->text('body');
+ $table->timestamps();
+ });
+ }
+
+ public function down() {
+ Schema::dropIfExists('ideas');
+ }
+}

Create Idea model and it's migration