Skip to content

Commit

Permalink
added tags and started table
Browse files Browse the repository at this point in the history
  • Loading branch information
tbirrell committed Oct 8, 2020
1 parent 2b5d20a commit 01d7c94
Show file tree
Hide file tree
Showing 6 changed files with 593 additions and 42 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ SESSION_DRIVER=database
FEEDBACK_URL=

FATHOM_SITE_ID=
UMAMI_SITE_ID=
UMAMI_SITE_URL=
SENTRY_LARAVEL_DSN=null

HASH_SALT=
Expand Down
8 changes: 8 additions & 0 deletions app/Models/VanityTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@ public function season()
{
return $this->belongsTo(Season::class);
}

//=== SCOPES ===/
public function scopeCurrentSeason($query)
{
return $query->whereHas('season', function ($q) {
$q->where('id', Season::current()->id);
});
}
}
Loading

0 comments on commit 01d7c94

Please sign in to comment.