Working on multi user

This commit is contained in:
Kode
2018-10-14 16:17:55 +01:00
parent e8b47776ce
commit 46bb073001
27 changed files with 184 additions and 38 deletions

View File

@@ -40,7 +40,7 @@ class User extends Authenticatable
*/
public function settings()
{
return $this->belongsToMany('App\Setting');
return $this->belongsToMany('App\Setting')->withPivot('value');
}
}