Create model/migration for earnings
ADD
app/Earning.php
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+
+class Earning extends Model {
+ //
+}

ADD
database/migrations/2017_07_23_112354_create_earnings_table.php
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateEarningsTable extends Migration {
+ public function up()
+ {
+ Schema::create('earnings', function (Blueprint $table) {
+ $table->increments('id');
+ $table->integer('user_id')->unsigned();
+ $table->date('date');
+ $table->string('description');
+ });
+ }
+
+ public function down() {
+ Schema::dropIfExists('earnings');
+ }
+}

Create model/migration for earnings