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

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

Create model/migration for spendings