Clean up references for relationships in models
MODIFY
app/Spending.php
app/Spending.php
@@ -27,6 +27,6 @@ class Spending extends Model {
}
public function tag() {
- return $this->belongsTo('App\Tag');
+ return $this->belongsTo(Tag::class);
}
}

MODIFY
app/Tag.php
app/Tag.php
@@ -4,7 +4,6 @@ namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
-use App\Spending;
class Tag extends Model {
use SoftDeletes;

MODIFY
app/User.php
app/User.php
@@ -5,12 +5,6 @@ namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
-use App\Earning;
-use App\Spending;
-use App\Tag;
-use App\Budget;
-use App\Currency;
-
class User extends Authenticatable {
use Notifiable;

Clean up references for relationships in models