Changeset View
Changeset View
Standalone View
Standalone View
src/app/User.php
Show First 20 Lines • Show All 430 Lines • ▼ Show 20 Lines | class User extends Authenticatable | ||||
* @return \Illuminate\Database\Eloquent\Builder Query builder | * @return \Illuminate\Database\Eloquent\Builder Query builder | ||||
*/ | */ | ||||
public function resources($with_accounts = true) | public function resources($with_accounts = true) | ||||
{ | { | ||||
return $this->entitleables(Resource::class, $with_accounts); | return $this->entitleables(Resource::class, $with_accounts); | ||||
} | } | ||||
/** | /** | ||||
* Return rooms controlled by the current user. | |||||
* | |||||
* @param bool $with_accounts Include rooms assigned to wallets | |||||
* the current user controls but not owns. | |||||
* | |||||
* @return \Illuminate\Database\Eloquent\Builder Query builder | |||||
*/ | |||||
public function rooms($with_accounts = true) | |||||
{ | |||||
return $this->entitleables(Meet\Room::class, $with_accounts); | |||||
} | |||||
/** | |||||
* Return shared folders controlled by the current user. | * Return shared folders controlled by the current user. | ||||
* | * | ||||
* @param bool $with_accounts Include folders assigned to wallets | * @param bool $with_accounts Include folders assigned to wallets | ||||
* the current user controls but not owns. | * the current user controls but not owns. | ||||
* | * | ||||
* @return \Illuminate\Database\Eloquent\Builder Query builder | * @return \Illuminate\Database\Eloquent\Builder Query builder | ||||
*/ | */ | ||||
public function sharedFolders($with_accounts = true) | public function sharedFolders($with_accounts = true) | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |