Changeset View
Changeset View
Standalone View
Standalone View
src/app/User.php
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Lines | public static function findByEmail(string $email, bool $external = false): ?User | ||||
} | } | ||||
// TODO: External email | // TODO: External email | ||||
return null; | return null; | ||||
} | } | ||||
/** | /** | ||||
* Storage items for this user. | |||||
* | |||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany | |||||
*/ | |||||
public function fsItems() | |||||
{ | |||||
return $this->hasMany(Fs\Item::class); | |||||
} | |||||
/** | |||||
* Return groups controlled by the current user. | * Return groups controlled by the current user. | ||||
* | * | ||||
* @param bool $with_accounts Include groups assigned to wallets | * @param bool $with_accounts Include groups 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 groups($with_accounts = true) | public function groups($with_accounts = true) | ||||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |