mix up the navbar a bit
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user