mix up the navbar a bit

This commit is contained in:
2018-07-28 19:04:37 +02:00
parent dc5ec5db95
commit 4c1ec1ba2f
13 changed files with 331 additions and 298 deletions
+7
View File
@@ -182,4 +182,11 @@ class User extends Authenticatable
{
return $table->owner_id == $this->id;
}
public function favouritesTable(Table $table)
{
return \DB::table('table_favourites')
->where('user_id', $this->id)
->where('table_id', $table->id)->exists();
}
}