chore(deps): upgrade dependencies (#7524)
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
npx lint-staged
|
||||
yarn lint-staged
|
||||
|
||||
@@ -23,7 +23,7 @@ class UserProfile
|
||||
]);
|
||||
|
||||
$webauthnKeys = $request->user()->webauthnKeys
|
||||
->map(fn (WebauthnKey $key) => [
|
||||
->map(fn (WebauthnKey $key) => [ // @phpstan-ignore-line
|
||||
'id' => $key->id,
|
||||
'name' => $key->name,
|
||||
'type' => $key->type,
|
||||
|
||||
@@ -44,7 +44,7 @@ class GetEtag extends BaseService implements ServiceInterface
|
||||
/** @var VCardResource */
|
||||
$entry = $data['entry'];
|
||||
|
||||
if ($entry->vault_id !== $this->vault->id) {
|
||||
if ($entry->vault_id != $this->vault->id) {
|
||||
throw new ModelNotFoundException;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ class CardDAVBackend extends AbstractBackend implements IDAVBackend, SyncSupport
|
||||
|
||||
private function getAddressBookDetails(Vault $vault): array
|
||||
{
|
||||
$token = $this->getCurrentSyncToken($vault->id);
|
||||
$token = $this->getCurrentSyncToken((string) $vault->id);
|
||||
|
||||
$des = [
|
||||
'id' => $vault->id,
|
||||
|
||||
@@ -55,7 +55,7 @@ class GetMultipleVCard implements ShouldQueue
|
||||
$data = $this->addressbookMultiget();
|
||||
|
||||
$jobs = collect($data)
|
||||
->filter(fn (array $contact): bool => is_array($contact) && $contact['status'] === '200')
|
||||
->filter(fn (array $contact): bool => $contact['status'] === '200')
|
||||
->map(fn (array $contact, string $href): ?UpdateVCard => $this->updateVCard($contact, $href))
|
||||
->filter();
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class ExportContactInformation extends Exporter implements ExportVCardResource
|
||||
case trans('Phone'):
|
||||
// https://datatracker.ietf.org/doc/html/rfc6350#section-6.4.1
|
||||
$vcard->add('TEL', $contactInformation->data, [
|
||||
//'TYPE' => $contactInformation->contactInformationType->type,
|
||||
// 'TYPE' => $contactInformation->contactInformationType->type,
|
||||
]);
|
||||
break;
|
||||
case trans('Facebook'):
|
||||
|
||||
@@ -83,7 +83,7 @@ class ImportContact extends Importer implements ImportVCardResource
|
||||
$contact = null;
|
||||
|
||||
if (($uri = Arr::get($this->context->data, 'uri')) !== null) {
|
||||
$contact = $backend->getObject($this->vault()->id, $uri);
|
||||
$contact = $backend->getObject((string) $this->vault()->id, $uri);
|
||||
|
||||
if ($contact === null) {
|
||||
$contact = Contact::firstWhere([
|
||||
|
||||
@@ -79,7 +79,7 @@ class CopyContactToAnotherVault extends BaseService implements ServiceInterface
|
||||
$this->newContact = new Contact;
|
||||
|
||||
$this->newContact = $this->contact->replicate();
|
||||
$this->newContact->vault_id = $this->newVault->id;
|
||||
$this->newContact->vault_id = (string) $this->newVault->id;
|
||||
$this->newContact->save();
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ class MoveContactToAnotherVault extends BaseService implements ServiceInterface
|
||||
{
|
||||
if ($this->contact->company) {
|
||||
if ($this->contact->company->contacts->count() === 1) {
|
||||
$this->contact->company->vault_id = $this->newVault->id;
|
||||
$this->contact->company->vault_id = (string) $this->newVault->id;
|
||||
$this->contact->company->save();
|
||||
} else {
|
||||
$newCompany = (new CreateCompany)->execute([
|
||||
|
||||
@@ -16,7 +16,7 @@ class ContactVCardController extends Controller
|
||||
{
|
||||
public function download(Request $request, Vault $vault, Contact $contact)
|
||||
{
|
||||
$cardData = $this->exportVCard($vault->id, $contact->id);
|
||||
$cardData = $this->exportVCard((string) $vault->id, $contact->id);
|
||||
$name = Str::of($contact->name)->slug(language: App::getLocale());
|
||||
|
||||
return Redirect::back()->with('flash', [
|
||||
|
||||
@@ -31,7 +31,7 @@ class GroupIndexViewHelper
|
||||
]),
|
||||
]);
|
||||
|
||||
return [
|
||||
return [ // @phpstan-ignore-line
|
||||
'id' => $group->id,
|
||||
'name' => $group->name,
|
||||
'url' => [
|
||||
|
||||
@@ -22,7 +22,7 @@ class GroupShowViewHelper
|
||||
: $group->groupType->groupTypeRoles()
|
||||
->orderBy('position')
|
||||
->get()
|
||||
->map(function (GroupTypeRole $role) use ($group) {
|
||||
->map(function (GroupTypeRole $role) use ($group) { // @phpstan-ignore-line
|
||||
$contactsCollection = $group->contacts()
|
||||
->wherePivot('group_type_role_id', $role->id)
|
||||
->get()
|
||||
@@ -37,7 +37,7 @@ class GroupShowViewHelper
|
||||
]),
|
||||
]);
|
||||
|
||||
return [
|
||||
return [ // @phpstan-ignore-line
|
||||
'id' => $role->id,
|
||||
'label' => $role->label,
|
||||
'contacts' => $contactsCollection,
|
||||
|
||||
@@ -17,11 +17,11 @@ class ModuleLoanViewHelper
|
||||
$loansAsLoaner = $contact->loansAsLoaner()->where('settled', false)->get();
|
||||
$loansAsLoanee = $contact->loansAsLoanee()->where('settled', false)->get();
|
||||
|
||||
$loans = $loansAsLoaner->concat($loansAsLoanee)->sortBy('loaned_at')->unique('id');
|
||||
|
||||
$loansAssociatedWithContactCollection = $loans->map(function ($loan) use ($contact, $user) {
|
||||
return self::dtoLoan($loan, $contact, $user);
|
||||
});
|
||||
$loansAssociatedWithContactCollection = $loansAsLoaner
|
||||
->concat($loansAsLoanee)
|
||||
->sortBy('loaned_at')
|
||||
->unique('id')
|
||||
->map(fn (Loan $loan): array => self::dtoLoan($loan, $contact, $user)); // @phpstan-ignore-line
|
||||
|
||||
return [
|
||||
'loans' => $loansAssociatedWithContactCollection,
|
||||
|
||||
@@ -55,8 +55,10 @@ class DestroyUser extends BaseService implements ServiceInterface
|
||||
{
|
||||
$this->validateRules($this->data);
|
||||
|
||||
$this->user = $this->account()->users()
|
||||
/** @var User */
|
||||
$user = $this->account()->users()
|
||||
->findOrFail($this->data['user_id']);
|
||||
$this->user = $user;
|
||||
|
||||
if ($this->data['user_id'] === $this->data['author_id']) {
|
||||
throw new ValidationException(
|
||||
|
||||
@@ -38,6 +38,7 @@ class GiveAdministratorPrivilege extends BaseService implements ServiceInterface
|
||||
{
|
||||
$this->validateRules($data);
|
||||
|
||||
/** @var User */
|
||||
$user = $this->account()->users()
|
||||
->findOrFail($data['user_id']);
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ class RemoveAdministratorPrivilege extends BaseService implements ServiceInterfa
|
||||
{
|
||||
$this->validateRules($data);
|
||||
|
||||
/** @var User */
|
||||
$user = $this->account()->users()
|
||||
->findOrFail($data['user_id']);
|
||||
|
||||
|
||||
@@ -9,11 +9,10 @@ class UserIndexViewHelper
|
||||
{
|
||||
public static function data(User $loggedUser): array
|
||||
{
|
||||
/** @var \Illuminate\Database\Eloquent\Collection<int,User> */
|
||||
$users = $loggedUser->account->users;
|
||||
|
||||
$userCollection = $users->map(function ($user) use ($loggedUser) {
|
||||
return self::dtoUser($user, $loggedUser);
|
||||
});
|
||||
$userCollection = $users->map(fn (User $user): array => self::dtoUser($user, $loggedUser));
|
||||
|
||||
return [
|
||||
'users' => $userCollection,
|
||||
|
||||
@@ -11,8 +11,6 @@ class AddPostToSliceOfLife extends BaseService implements ServiceInterface
|
||||
{
|
||||
private Post $post;
|
||||
|
||||
private ?SliceOfLife $slice;
|
||||
|
||||
private array $data;
|
||||
|
||||
/**
|
||||
|
||||
@@ -148,13 +148,14 @@ class JournalShowViewHelper
|
||||
*/
|
||||
public static function yearsOfContentInJournal(Journal $journal): Collection
|
||||
{
|
||||
/** @var Collection<int,Post> */
|
||||
$posts = Post::where('journal_id', $journal->id)
|
||||
->select(DB::raw(SQLHelper::year('written_at').' as year'))
|
||||
->distinct()
|
||||
->orderBy('year', 'desc')
|
||||
->get();
|
||||
|
||||
return $posts->map(fn (Post $post) => [
|
||||
return $posts->map(fn (Post $post): array => [ // @phpstan-ignore-line
|
||||
'year' => $post->year,
|
||||
'posts' => Post::where('journal_id', $journal->id)
|
||||
->whereYear('written_at', $post->year)
|
||||
@@ -196,7 +197,7 @@ class JournalShowViewHelper
|
||||
|
||||
public static function slices(Journal $journal): Collection
|
||||
{
|
||||
$slicesCollection = $journal
|
||||
return $journal
|
||||
->slicesOfLife()
|
||||
->get()
|
||||
->map(fn (SliceOfLife $slice) => [
|
||||
@@ -212,7 +213,5 @@ class JournalShowViewHelper
|
||||
]),
|
||||
],
|
||||
]);
|
||||
|
||||
return $slicesCollection;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ class VaultIndexViewHelper
|
||||
private static function getContacts(Vault $vault): Collection
|
||||
{
|
||||
return $vault->contacts
|
||||
->random(fn (Collection $items): int => min(5, count($items)))
|
||||
->random(fn (Collection $items): int => min(5, count($items))) // @phpstan-ignore-line
|
||||
->map(fn (Contact $contact) => [
|
||||
'id' => $contact->id,
|
||||
'name' => $contact->name,
|
||||
|
||||
@@ -58,7 +58,7 @@ class VaultReminderIndexViewHelper
|
||||
$reminder = ContactReminder::where('id', $contactReminderScheduled->contact_reminder_id)->with('contact')->first();
|
||||
$contact = $reminder->contact;
|
||||
|
||||
if ($contact->vault_id !== $vault->id) {
|
||||
if ($contact->vault_id != $vault->id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ class VaultShowViewHelper
|
||||
$remindersCollection = $contactRemindersScheduled->map(function ($reminder) use ($vault, $user) {
|
||||
$contact = $reminder->contact;
|
||||
|
||||
if ($contact->vault_id !== $vault->id) {
|
||||
if ($contact->vault_id != $vault->id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -56,8 +56,10 @@ class ChangeVaultAccess extends BaseService implements ServiceInterface
|
||||
{
|
||||
$this->validateRules($this->data);
|
||||
|
||||
$this->user = $this->account()->users()
|
||||
/** @var User */
|
||||
$user = $this->account()->users()
|
||||
->findOrFail($this->data['user_id']);
|
||||
$this->user = $user;
|
||||
|
||||
if ($this->user->id === $this->author->id) {
|
||||
throw new SameUserException;
|
||||
|
||||
@@ -59,8 +59,10 @@ class GrantVaultAccessToUser extends BaseService implements ServiceInterface
|
||||
{
|
||||
$this->validateRules($this->data);
|
||||
|
||||
$this->user = $this->account()->users()
|
||||
/** @var User */
|
||||
$user = $this->account()->users()
|
||||
->findOrFail($this->data['user_id']);
|
||||
$this->user = $user;
|
||||
|
||||
if ($this->user->id === $this->author->id) {
|
||||
throw new SameUserException;
|
||||
|
||||
@@ -55,8 +55,10 @@ class RemoveVaultAccess extends BaseService implements ServiceInterface
|
||||
{
|
||||
$this->validateRules($this->data);
|
||||
|
||||
$this->user = $this->account()->users()
|
||||
/** @var User */
|
||||
$user = $this->account()->users()
|
||||
->findOrFail($this->data['user_id']);
|
||||
$this->user = $user;
|
||||
|
||||
if ($this->user->id === $this->author->id) {
|
||||
throw new SameUserException;
|
||||
|
||||
+2
-6
@@ -31,12 +31,8 @@ class VaultSettingsIndexViewHelper
|
||||
$usersInAccount = $vault->account->users()->whereNotNull('email_verified_at')->get();
|
||||
$usersInVault = $vault->users()->get();
|
||||
$usersInAccount = $usersInAccount->diff($usersInVault);
|
||||
$usersInAccountCollection = $usersInAccount->map(function ($user) use ($vault) {
|
||||
return self::dtoUser($user, $vault);
|
||||
});
|
||||
$usersInVaultCollection = $usersInVault->map(function ($user) use ($vault) {
|
||||
return self::dtoUser($user, $vault);
|
||||
});
|
||||
$usersInAccountCollection = $usersInAccount->map(fn (User $user): array => self::dtoUser($user, $vault)); // @phpstan-ignore-line
|
||||
$usersInVaultCollection = $usersInVault->map(fn (User $user): array => self::dtoUser($user, $vault));
|
||||
|
||||
// labels
|
||||
$labels = $vault->labels()
|
||||
|
||||
@@ -19,7 +19,7 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* A list of the inputs that are never flashed for validation exceptions.
|
||||
*
|
||||
* @var array<int, string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $dontFlash = [
|
||||
'current_password',
|
||||
|
||||
@@ -70,10 +70,6 @@ class CollectionHelper
|
||||
*/
|
||||
protected static function valueRetriever(callable|string $value): callable
|
||||
{
|
||||
if (! is_string($value) && is_callable($value)) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return fn ($item) => data_get($item, $value);
|
||||
return is_callable($value) ? $value : fn ($item) => data_get($item, $value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class ImportantDateHelper
|
||||
}
|
||||
|
||||
// case: only know the month and day. In this case, we can't calculate
|
||||
//the age at all
|
||||
// the age at all
|
||||
if ($date->day && $date->month && ! $date->year) {
|
||||
$type = ContactImportantDate::TYPE_MONTH_DAY;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ class SocialiteCallbackController extends Controller
|
||||
$this->checkProvider($driver);
|
||||
$this->checkForErrors($request, $driver);
|
||||
|
||||
return $this->loginPipeline($request)->then(function (/*$request*/) {
|
||||
return $this->loginPipeline($request)->then(function (/* $request */) {
|
||||
return Redirect::intended(route('home'));
|
||||
});
|
||||
} catch (ValidationException $e) {
|
||||
|
||||
@@ -14,8 +14,6 @@ class Authenticate extends Middleware
|
||||
*/
|
||||
protected function redirectTo($request)
|
||||
{
|
||||
if (! $request->expectsJson()) {
|
||||
return route('login');
|
||||
}
|
||||
return ! $request->expectsJson() ? route('login') : null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ class SanctumSetUser
|
||||
*/
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
$this->sanctum()->setUser($request->user()->withAccessToken(new TransientToken));
|
||||
$this->sanctum()->setUser($request->user()->withAccessToken(new TransientToken)); // @phpstan-ignore-line
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
+35
-1
@@ -16,7 +16,7 @@ class Account extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'storage_limit_in_mb',
|
||||
@@ -34,6 +34,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the templates associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Template, $this>
|
||||
*/
|
||||
public function templates(): HasMany
|
||||
{
|
||||
@@ -42,6 +44,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the modules associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Module, $this>
|
||||
*/
|
||||
public function modules(): HasMany
|
||||
{
|
||||
@@ -50,6 +54,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the information associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\GroupType, $this>
|
||||
*/
|
||||
public function groupTypes(): HasMany
|
||||
{
|
||||
@@ -58,6 +64,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the relationship group types associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\RelationshipGroupType, $this>
|
||||
*/
|
||||
public function relationshipGroupTypes(): HasMany
|
||||
{
|
||||
@@ -66,6 +74,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the genders associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Gender, $this>
|
||||
*/
|
||||
public function genders(): HasMany
|
||||
{
|
||||
@@ -74,6 +84,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the pronouns associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Pronoun, $this>
|
||||
*/
|
||||
public function pronouns(): HasMany
|
||||
{
|
||||
@@ -82,6 +94,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the contact information types associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactInformationType, $this>
|
||||
*/
|
||||
public function contactInformationTypes(): HasMany
|
||||
{
|
||||
@@ -90,6 +104,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the address types associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\AddressType, $this>
|
||||
*/
|
||||
public function addressTypes(): HasMany
|
||||
{
|
||||
@@ -98,6 +114,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the pet categories associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PetCategory, $this>
|
||||
*/
|
||||
public function petCategories(): HasMany
|
||||
{
|
||||
@@ -106,6 +124,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the emotions associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Emotion, $this>
|
||||
*/
|
||||
public function emotions(): HasMany
|
||||
{
|
||||
@@ -114,6 +134,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the currencies in the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Currency, $this>
|
||||
*/
|
||||
public function currencies(): BelongsToMany
|
||||
{
|
||||
@@ -124,6 +146,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the call reason types associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\CallReasonType, $this>
|
||||
*/
|
||||
public function callReasonTypes(): HasMany
|
||||
{
|
||||
@@ -132,6 +156,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the gift occasions associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\GiftOccasion, $this>
|
||||
*/
|
||||
public function giftOccasions(): HasMany
|
||||
{
|
||||
@@ -140,6 +166,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the gift stages associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\GiftState, $this>
|
||||
*/
|
||||
public function giftStates(): HasMany
|
||||
{
|
||||
@@ -148,6 +176,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the vaults associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vaults(): HasMany
|
||||
{
|
||||
@@ -156,6 +186,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the post templates associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PostTemplate, $this>
|
||||
*/
|
||||
public function postTemplates(): HasMany
|
||||
{
|
||||
@@ -164,6 +196,8 @@ class Account extends Model
|
||||
|
||||
/**
|
||||
* Get the religions associated with the account.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Religion, $this>
|
||||
*/
|
||||
public function religions(): HasMany
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class Address extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -34,6 +34,8 @@ class Address extends Model
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the address.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): BelongsToMany
|
||||
{
|
||||
@@ -43,6 +45,8 @@ class Address extends Model
|
||||
|
||||
/**
|
||||
* Get the address type object associated with the address.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\AddressType, $this>
|
||||
*/
|
||||
public function addressType(): BelongsTo
|
||||
{
|
||||
@@ -51,6 +55,8 @@ class Address extends Model
|
||||
|
||||
/**
|
||||
* Get the address's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
@@ -71,7 +71,7 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
/**
|
||||
* Eager load account with every contact.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $with = [
|
||||
'user',
|
||||
@@ -79,6 +79,8 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
|
||||
/**
|
||||
* Get the account record associated with the subscription.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -87,6 +89,8 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
|
||||
/**
|
||||
* Get the user record associated with the subscription.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
@@ -95,6 +99,8 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
|
||||
/**
|
||||
* Get the vault record associated with the subscription.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -103,6 +109,8 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
|
||||
/**
|
||||
* Get the local synctoken.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\SyncToken, $this>
|
||||
*/
|
||||
public function localSyncToken(): BelongsTo
|
||||
{
|
||||
@@ -111,6 +119,8 @@ class AddressBookSubscription extends Model implements Loggable
|
||||
|
||||
/**
|
||||
* Get the subscription's logs.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphMany<\App\Models\Log, $this>
|
||||
*/
|
||||
public function logs(): MorphMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class AddressType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int, string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -26,6 +26,8 @@ class AddressType extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the contact information type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
+9
-1
@@ -26,7 +26,7 @@ class Call extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -54,6 +54,8 @@ class Call extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the call.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -62,6 +64,8 @@ class Call extends Model
|
||||
|
||||
/**
|
||||
* Get the author associated with the call.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this>
|
||||
*/
|
||||
public function author(): BelongsTo
|
||||
{
|
||||
@@ -70,6 +74,8 @@ class Call extends Model
|
||||
|
||||
/**
|
||||
* Get the call reason associated with the call.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\CallReason, $this>
|
||||
*/
|
||||
public function callReason(): BelongsTo
|
||||
{
|
||||
@@ -78,6 +84,8 @@ class Call extends Model
|
||||
|
||||
/**
|
||||
* Get the emotion associated with the call.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Emotion, $this>
|
||||
*/
|
||||
public function emotion(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class CallReason extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'call_reason_type_id',
|
||||
@@ -26,6 +26,8 @@ class CallReason extends Model
|
||||
|
||||
/**
|
||||
* Get the call reason type associated with call reason.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\CallReasonType, $this>
|
||||
*/
|
||||
public function callReasonType(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class CallReasonType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -27,6 +27,8 @@ class CallReasonType extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the call reason type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -35,6 +37,8 @@ class CallReasonType extends Model
|
||||
|
||||
/**
|
||||
* Get the call reasons associated with the call reason type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\CallReason, $this>
|
||||
*/
|
||||
public function callReasons(): HasMany
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ class Company extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int, string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -35,6 +35,8 @@ class Company extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the company.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -43,6 +45,8 @@ class Company extends Model
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the company.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): HasMany
|
||||
{
|
||||
|
||||
+53
-1
@@ -38,7 +38,7 @@ class Contact extends VCardResource
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -138,6 +138,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the vault associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -146,6 +148,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the gender associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Gender, $this>
|
||||
*/
|
||||
public function gender(): BelongsTo
|
||||
{
|
||||
@@ -154,6 +158,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the pronoun associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Pronoun, $this>
|
||||
*/
|
||||
public function pronoun(): BelongsTo
|
||||
{
|
||||
@@ -162,6 +168,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the template associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Template, $this>
|
||||
*/
|
||||
public function template(): BelongsTo
|
||||
{
|
||||
@@ -170,6 +178,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the relationships associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function relationships(): BelongsToMany
|
||||
{
|
||||
@@ -178,6 +188,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the labels associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Label, $this>
|
||||
*/
|
||||
public function labels(): BelongsToMany
|
||||
{
|
||||
@@ -186,6 +198,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the contact information records associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactInformation, $this>
|
||||
*/
|
||||
public function contactInformations(): HasMany
|
||||
{
|
||||
@@ -194,6 +208,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the note records associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Note, $this>
|
||||
*/
|
||||
public function notes(): HasMany
|
||||
{
|
||||
@@ -202,6 +218,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the date records associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactImportantDate, $this>
|
||||
*/
|
||||
public function importantDates(): HasMany
|
||||
{
|
||||
@@ -210,6 +228,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the contact reminders records associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactReminder, $this>
|
||||
*/
|
||||
public function reminders(): HasMany
|
||||
{
|
||||
@@ -242,6 +262,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the company associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Company, $this>
|
||||
*/
|
||||
public function company(): BelongsTo
|
||||
{
|
||||
@@ -250,6 +272,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the tasks associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactTask, $this>
|
||||
*/
|
||||
public function tasks(): HasMany
|
||||
{
|
||||
@@ -258,6 +282,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the calls associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Call, $this>
|
||||
*/
|
||||
public function calls(): HasMany
|
||||
{
|
||||
@@ -266,6 +292,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the pets associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Pet, $this>
|
||||
*/
|
||||
public function pets(): HasMany
|
||||
{
|
||||
@@ -274,6 +302,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the goals associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Goal, $this>
|
||||
*/
|
||||
public function goals(): HasMany
|
||||
{
|
||||
@@ -282,6 +312,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the files associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphMany<\App\Models\File, $this>
|
||||
*/
|
||||
public function files(): MorphMany
|
||||
{
|
||||
@@ -291,6 +323,8 @@ class Contact extends VCardResource
|
||||
/**
|
||||
* Get the file associated with the contact.
|
||||
* If it exists, it's the avatar.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\File, $this>
|
||||
*/
|
||||
public function file(): BelongsTo
|
||||
{
|
||||
@@ -299,6 +333,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the groups associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Group, $this>
|
||||
*/
|
||||
public function groups(): BelongsToMany
|
||||
{
|
||||
@@ -307,6 +343,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the posts associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Post, $this>
|
||||
*/
|
||||
public function posts(): BelongsToMany
|
||||
{
|
||||
@@ -315,6 +353,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the religion associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Religion, $this>
|
||||
*/
|
||||
public function religion(): BelongsTo
|
||||
{
|
||||
@@ -323,6 +363,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the life events associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\LifeEvent, $this>
|
||||
*/
|
||||
public function lifeEvents(): BelongsToMany
|
||||
{
|
||||
@@ -331,6 +373,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the timeline events associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\TimelineEvent, $this>
|
||||
*/
|
||||
public function timelineEvents(): BelongsToMany
|
||||
{
|
||||
@@ -339,6 +383,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the mood tracking events associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\MoodTrackingEvent, $this>
|
||||
*/
|
||||
public function moodTrackingEvents(): HasMany
|
||||
{
|
||||
@@ -347,6 +393,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the addresses associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Address, $this>
|
||||
*/
|
||||
public function addresses(): BelongsToMany
|
||||
{
|
||||
@@ -357,6 +405,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the quick facts associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\QuickFact, $this>
|
||||
*/
|
||||
public function quickFacts(): HasMany
|
||||
{
|
||||
@@ -365,6 +415,8 @@ class Contact extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the life metrics associated with the contact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\LifeMetric, $this>
|
||||
*/
|
||||
public function lifeMetrics(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ class ContactFeedItem extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'author_id',
|
||||
@@ -108,6 +108,8 @@ class ContactFeedItem extends Model
|
||||
|
||||
/**
|
||||
* Get the user associated with the contact feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this>
|
||||
*/
|
||||
public function author(): BelongsTo
|
||||
{
|
||||
@@ -116,6 +118,8 @@ class ContactFeedItem extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the contact feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@ class ContactImportantDate extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -45,6 +45,8 @@ class ContactImportantDate extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the contact date.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -53,6 +55,8 @@ class ContactImportantDate extends Model
|
||||
|
||||
/**
|
||||
* Get the important date type associated with the contact date.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\ContactImportantDateType, $this>
|
||||
*/
|
||||
public function contactImportantDateType(): BelongsTo
|
||||
{
|
||||
@@ -61,6 +65,8 @@ class ContactImportantDate extends Model
|
||||
|
||||
/**
|
||||
* Get the important date's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class ContactImportantDateType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -35,6 +35,8 @@ class ContactImportantDateType extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the contact date type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class ContactInformation extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -27,6 +27,8 @@ class ContactInformation extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the contact information.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -35,6 +37,8 @@ class ContactInformation extends Model
|
||||
|
||||
/**
|
||||
* Get the contact information type associated with the contact information.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\ContactInformationType, $this>
|
||||
*/
|
||||
public function contactInformationType(): BelongsTo
|
||||
{
|
||||
@@ -66,6 +70,8 @@ class ContactInformation extends Model
|
||||
|
||||
/**
|
||||
* Get the contact information's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ class ContactInformationType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -35,6 +35,8 @@ class ContactInformationType extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the contact information type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ class ContactReminder extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -52,6 +52,8 @@ class ContactReminder extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the contact reminder.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -60,6 +62,8 @@ class ContactReminder extends Model
|
||||
|
||||
/**
|
||||
* Get the user notification channel records associated with the contact reminder.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\UserNotificationChannel, $this>
|
||||
*/
|
||||
public function userNotificationChannels(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class ContactTask extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -41,6 +41,8 @@ class ContactTask extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the contact task.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -49,6 +51,8 @@ class ContactTask extends Model
|
||||
|
||||
/**
|
||||
* Get the author associated with the contact task.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this>
|
||||
*/
|
||||
public function author(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class Currency extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'code',
|
||||
@@ -23,6 +23,8 @@ class Currency extends Model
|
||||
|
||||
/**
|
||||
* Get the account records that have the currency.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Account, $this>
|
||||
*/
|
||||
public function accounts(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -25,7 +25,7 @@ class Emotion extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -36,6 +36,8 @@ class Emotion extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the emotion.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
+3
-1
@@ -30,7 +30,7 @@ class File extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -57,6 +57,8 @@ class File extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the file.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ class Gender extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -62,6 +62,8 @@ class Gender extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the gender.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class GiftOccasion extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -27,6 +27,8 @@ class GiftOccasion extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the gift occasion.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class GiftState extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -27,6 +27,8 @@ class GiftState extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the gift occasion.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
+7
-1
@@ -15,7 +15,7 @@ class Goal extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -34,6 +34,8 @@ class Goal extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the goal.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -42,6 +44,8 @@ class Goal extends Model
|
||||
|
||||
/**
|
||||
* Get the streaks associated with the goal.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Streak, $this>
|
||||
*/
|
||||
public function streaks(): HasMany
|
||||
{
|
||||
@@ -50,6 +54,8 @@ class Goal extends Model
|
||||
|
||||
/**
|
||||
* Get the goal's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ class Group extends VCardResource
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -74,6 +74,8 @@ class Group extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the vault associated with the group.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -82,6 +84,8 @@ class Group extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the vault associated with the group.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\GroupType, $this>
|
||||
*/
|
||||
public function groupType(): BelongsTo
|
||||
{
|
||||
@@ -90,6 +94,8 @@ class Group extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the group.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): BelongsToMany
|
||||
{
|
||||
@@ -98,6 +104,8 @@ class Group extends VCardResource
|
||||
|
||||
/**
|
||||
* Get the group's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class GroupType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -28,6 +28,8 @@ class GroupType extends Model
|
||||
|
||||
/**
|
||||
* Get the account record associated with the group type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -36,6 +38,8 @@ class GroupType extends Model
|
||||
|
||||
/**
|
||||
* Get the group type roles associated with the group type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\GroupTypeRole, $this>
|
||||
*/
|
||||
public function groupTypeRoles(): HasMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class GroupTypeRole extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'group_type_id',
|
||||
@@ -27,6 +27,8 @@ class GroupTypeRole extends Model
|
||||
|
||||
/**
|
||||
* Get the group type record associated with the group type role.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\GroupType, $this>
|
||||
*/
|
||||
public function groupType(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ class Cron extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'command',
|
||||
|
||||
@@ -16,7 +16,7 @@ class Journal extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -26,6 +26,8 @@ class Journal extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the journal.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -34,6 +36,8 @@ class Journal extends Model
|
||||
|
||||
/**
|
||||
* Get the posts associated with the journal.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Post, $this>
|
||||
*/
|
||||
public function posts(): HasMany
|
||||
{
|
||||
@@ -42,6 +46,8 @@ class Journal extends Model
|
||||
|
||||
/**
|
||||
* Get the slices of life associated with the journal.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\SliceOfLife, $this>
|
||||
*/
|
||||
public function slicesOfLife(): HasMany
|
||||
{
|
||||
@@ -50,6 +56,8 @@ class Journal extends Model
|
||||
|
||||
/**
|
||||
* Get the journal metrics associated with the journal.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\JournalMetric, $this>
|
||||
*/
|
||||
public function journalMetrics(): HasMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class JournalMetric extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'journal_id',
|
||||
@@ -25,6 +25,8 @@ class JournalMetric extends Model
|
||||
|
||||
/**
|
||||
* Get the journal associated with the journal metric.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Journal, $this>
|
||||
*/
|
||||
public function journal(): BelongsTo
|
||||
{
|
||||
@@ -33,6 +35,8 @@ class JournalMetric extends Model
|
||||
|
||||
/**
|
||||
* Get the post metrics associated with the journal metric.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PostMetric, $this>
|
||||
*/
|
||||
public function postMetrics(): HasMany
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class Label extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -30,6 +30,8 @@ class Label extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the label.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -38,6 +40,8 @@ class Label extends Model
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the label.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): BelongsToMany
|
||||
{
|
||||
@@ -46,6 +50,8 @@ class Label extends Model
|
||||
|
||||
/**
|
||||
* Get the label's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class LifeEvent extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'timeline_event_id',
|
||||
@@ -49,6 +49,8 @@ class LifeEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the timeline event associated with the life event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\TimelineEvent, $this>
|
||||
*/
|
||||
public function timelineEvent(): BelongsTo
|
||||
{
|
||||
@@ -57,6 +59,8 @@ class LifeEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the life event type associated with the life event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\LifeEventType, $this>
|
||||
*/
|
||||
public function lifeEventType(): BelongsTo
|
||||
{
|
||||
@@ -65,6 +69,8 @@ class LifeEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the currency associated with the life event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Currency, $this>
|
||||
*/
|
||||
public function currency(): BelongsTo
|
||||
{
|
||||
@@ -73,6 +79,8 @@ class LifeEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the emotion associated with the life event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Emotion, $this>
|
||||
*/
|
||||
public function emotion(): BelongsTo
|
||||
{
|
||||
@@ -81,6 +89,8 @@ class LifeEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the contact who paid for the life event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function paidBy(): BelongsTo
|
||||
{
|
||||
@@ -89,6 +99,8 @@ class LifeEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the contact records the life event is with.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function participants(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class LifeEventCategory extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -29,6 +29,8 @@ class LifeEventCategory extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the life event category.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -37,6 +39,8 @@ class LifeEventCategory extends Model
|
||||
|
||||
/**
|
||||
* Get the life event types associated with the life event category.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\LifeEventType, $this>
|
||||
*/
|
||||
public function lifeEventTypes(): HasMany
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class LifeEventType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'life_event_category_id',
|
||||
@@ -29,6 +29,8 @@ class LifeEventType extends Model
|
||||
|
||||
/**
|
||||
* Get the life event category associated with the life event type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\LifeEventCategory, $this>
|
||||
*/
|
||||
public function lifeEventCategory(): BelongsTo
|
||||
{
|
||||
@@ -37,6 +39,8 @@ class LifeEventType extends Model
|
||||
|
||||
/**
|
||||
* Get the life events associated with the life event type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\LifeEvent, $this>
|
||||
*/
|
||||
public function lifeEvents(): HasMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class LifeMetric extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -25,6 +25,8 @@ class LifeMetric extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the life metric.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -33,6 +35,8 @@ class LifeMetric extends Model
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the life metric.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): BelongsToMany
|
||||
{
|
||||
|
||||
+11
-1
@@ -25,7 +25,7 @@ class Loan extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -62,6 +62,8 @@ class Loan extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the loan.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -70,6 +72,8 @@ class Loan extends Model
|
||||
|
||||
/**
|
||||
* Get the currency associated with the loan.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Currency, $this>
|
||||
*/
|
||||
public function currency(): BelongsTo
|
||||
{
|
||||
@@ -78,6 +82,8 @@ class Loan extends Model
|
||||
|
||||
/**
|
||||
* Get the contact that did the loan.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function loaners(): BelongsToMany
|
||||
{
|
||||
@@ -86,6 +92,8 @@ class Loan extends Model
|
||||
|
||||
/**
|
||||
* Get the contact records the loan was made to.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function loanees(): BelongsToMany
|
||||
{
|
||||
@@ -94,6 +102,8 @@ class Loan extends Model
|
||||
|
||||
/**
|
||||
* Get the loan's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ class Log extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'group_id',
|
||||
|
||||
@@ -67,7 +67,7 @@ class Module extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -91,6 +91,8 @@ class Module extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the template.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -99,6 +101,8 @@ class Module extends Model
|
||||
|
||||
/**
|
||||
* Get the module rows associated with the module.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ModuleRow, $this>
|
||||
*/
|
||||
public function rows(): HasMany
|
||||
{
|
||||
@@ -107,6 +111,8 @@ class Module extends Model
|
||||
|
||||
/**
|
||||
* Get the template pages associated with the module.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\TemplatePage, $this>
|
||||
*/
|
||||
public function templatePages(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class ModuleRow extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'module_id',
|
||||
@@ -25,6 +25,8 @@ class ModuleRow extends Model
|
||||
|
||||
/**
|
||||
* Get the module associated with the module.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Module, $this>
|
||||
*/
|
||||
public function module(): BelongsTo
|
||||
{
|
||||
@@ -33,6 +35,8 @@ class ModuleRow extends Model
|
||||
|
||||
/**
|
||||
* Get the module row fields associated with the module.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ModuleRowField, $this>
|
||||
*/
|
||||
public function fields(): HasMany
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ class ModuleRowField extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'module_row_id',
|
||||
@@ -41,6 +41,8 @@ class ModuleRowField extends Model
|
||||
|
||||
/**
|
||||
* Get the module row associated with the module.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\ModuleRow, $this>
|
||||
*/
|
||||
public function row(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class MoodTrackingEvent extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -37,6 +37,8 @@ class MoodTrackingEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the mood tracking event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -45,6 +47,8 @@ class MoodTrackingEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the mood tracking parameter associated with the mood tracking event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\MoodTrackingParameter, $this>
|
||||
*/
|
||||
public function moodTrackingParameter(): BelongsTo
|
||||
{
|
||||
@@ -53,6 +57,8 @@ class MoodTrackingEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the mood tracking event's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class MoodTrackingParameter extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -29,6 +29,8 @@ class MoodTrackingParameter extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the mood tracking parameter.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -37,6 +39,8 @@ class MoodTrackingParameter extends Model
|
||||
|
||||
/**
|
||||
* Get the mood tracking events associated with the mood tracking parameter.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\MoodTrackingEvent, $this>
|
||||
*/
|
||||
public function moodTrackingEvents(): HasMany
|
||||
{
|
||||
|
||||
+9
-1
@@ -18,7 +18,7 @@ class Note extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -56,6 +56,8 @@ class Note extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the note.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -64,6 +66,8 @@ class Note extends Model
|
||||
|
||||
/**
|
||||
* Get the author associated with the note.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this>
|
||||
*/
|
||||
public function author(): BelongsTo
|
||||
{
|
||||
@@ -72,6 +76,8 @@ class Note extends Model
|
||||
|
||||
/**
|
||||
* Get the emotion associated with the note.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Emotion, $this>
|
||||
*/
|
||||
public function emotion(): BelongsTo
|
||||
{
|
||||
@@ -80,6 +86,8 @@ class Note extends Model
|
||||
|
||||
/**
|
||||
* Get the note's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
+7
-1
@@ -16,7 +16,7 @@ class Pet extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'pet_category_id',
|
||||
@@ -26,6 +26,8 @@ class Pet extends Model
|
||||
|
||||
/**
|
||||
* Get the pet category associated with the pet.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\PetCategory, $this>
|
||||
*/
|
||||
public function petCategory(): BelongsTo
|
||||
{
|
||||
@@ -34,6 +36,8 @@ class Pet extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the pet.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -42,6 +46,8 @@ class Pet extends Model
|
||||
|
||||
/**
|
||||
* Get the pet's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class PetCategory extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -26,6 +26,8 @@ class PetCategory extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the pet category.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
+17
-1
@@ -21,7 +21,7 @@ class Post extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'journal_id',
|
||||
@@ -46,6 +46,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the journal associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Journal, $this>
|
||||
*/
|
||||
public function journal(): BelongsTo
|
||||
{
|
||||
@@ -54,6 +56,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the slice of life associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\SliceOfLife, $this>
|
||||
*/
|
||||
public function sliceOfLife(): BelongsTo
|
||||
{
|
||||
@@ -62,6 +66,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the post sections associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PostSection, $this>
|
||||
*/
|
||||
public function postSections(): HasMany
|
||||
{
|
||||
@@ -70,6 +76,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): BelongsToMany
|
||||
{
|
||||
@@ -78,6 +86,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the post's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
@@ -86,6 +96,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the tags associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Tag, $this>
|
||||
*/
|
||||
public function tags(): BelongsToMany
|
||||
{
|
||||
@@ -94,6 +106,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the files associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphMany<\App\Models\File, $this>
|
||||
*/
|
||||
public function files(): MorphMany
|
||||
{
|
||||
@@ -102,6 +116,8 @@ class Post extends Model
|
||||
|
||||
/**
|
||||
* Get the post metrics associated with the post.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PostMetric, $this>
|
||||
*/
|
||||
public function postMetrics(): HasMany
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class PostMetric extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'post_id',
|
||||
@@ -26,6 +26,8 @@ class PostMetric extends Model
|
||||
|
||||
/**
|
||||
* Get the journal metric associated with the post metric.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\JournalMetric, $this>
|
||||
*/
|
||||
public function journalMetric(): BelongsTo
|
||||
{
|
||||
@@ -34,6 +36,8 @@ class PostMetric extends Model
|
||||
|
||||
/**
|
||||
* Get the post associated with the post metric.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Post, $this>
|
||||
*/
|
||||
public function post(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class PostSection extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'post_id',
|
||||
@@ -26,6 +26,8 @@ class PostSection extends Model
|
||||
|
||||
/**
|
||||
* Get the post associated with the post section.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Post, $this>
|
||||
*/
|
||||
public function post(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ class PostTemplate extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -38,6 +38,8 @@ class PostTemplate extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the post type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -46,6 +48,8 @@ class PostTemplate extends Model
|
||||
|
||||
/**
|
||||
* Get the post type section records associated with the post type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PostTemplateSection, $this>
|
||||
*/
|
||||
public function postTemplateSections(): HasMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class PostTemplateSection extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'post_template_id',
|
||||
@@ -37,6 +37,8 @@ class PostTemplateSection extends Model
|
||||
|
||||
/**
|
||||
* Get the post type associated with the post type section.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\PostTemplate, $this>
|
||||
*/
|
||||
public function postTemplate(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ class Pronoun extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -24,6 +24,8 @@ class Pronoun extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the gender.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class QuickFact extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'contact_id',
|
||||
@@ -25,6 +25,8 @@ class QuickFact extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the quick fact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contact(): BelongsTo
|
||||
{
|
||||
@@ -33,6 +35,8 @@ class QuickFact extends Model
|
||||
|
||||
/**
|
||||
* Get the quick fact template associated with the quick fact.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\VaultQuickFactsTemplate, $this>
|
||||
*/
|
||||
public function vaultQuickFactsTemplate(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ class RelationshipGroupType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -45,6 +45,8 @@ class RelationshipGroupType extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the relationship type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -53,6 +55,8 @@ class RelationshipGroupType extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the relationship type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\RelationshipType, $this>
|
||||
*/
|
||||
public function types(): HasMany
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ class RelationshipType extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'relationship_group_type_id',
|
||||
@@ -47,6 +47,8 @@ class RelationshipType extends Model
|
||||
|
||||
/**
|
||||
* Get the group type associated with the relationship type.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\RelationshipGroupType, $this>
|
||||
*/
|
||||
public function groupType(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ class Religion extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -25,6 +25,8 @@ class Religion extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the religion.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ class SliceOfLife extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'journal_id',
|
||||
@@ -25,6 +25,8 @@ class SliceOfLife extends Model
|
||||
|
||||
/**
|
||||
* Get the journal associated with the slice of life.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Journal, $this>
|
||||
*/
|
||||
public function journal(): BelongsTo
|
||||
{
|
||||
@@ -33,6 +35,8 @@ class SliceOfLife extends Model
|
||||
|
||||
/**
|
||||
* Get the posts associated with the slice of life.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Post, $this>
|
||||
*/
|
||||
public function posts(): HasMany
|
||||
{
|
||||
@@ -42,6 +46,8 @@ class SliceOfLife extends Model
|
||||
/**
|
||||
* Get the file associated with the slice of life.
|
||||
* If it exists, it's the header image.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\File, $this>
|
||||
*/
|
||||
public function file(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ class Streak extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'goal_id',
|
||||
@@ -31,6 +31,8 @@ class Streak extends Model
|
||||
|
||||
/**
|
||||
* Get the goal associated with the streak.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Goal, $this>
|
||||
*/
|
||||
public function goal(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ class SyncToken extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
|
||||
+7
-1
@@ -15,7 +15,7 @@ class Tag extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -25,6 +25,8 @@ class Tag extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the journal tag.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -33,6 +35,8 @@ class Tag extends Model
|
||||
|
||||
/**
|
||||
* Get the posts associated with the journal tag.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Post, $this>
|
||||
*/
|
||||
public function posts(): BelongsToMany
|
||||
{
|
||||
@@ -41,6 +45,8 @@ class Tag extends Model
|
||||
|
||||
/**
|
||||
* Get the journal tag's feed item.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne<\App\Models\ContactFeedItem, $this>
|
||||
*/
|
||||
public function feedItem(): MorphOne
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class Template extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -35,6 +35,8 @@ class Template extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the template.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -43,6 +45,8 @@ class Template extends Model
|
||||
|
||||
/**
|
||||
* Get the template page records associated with the template.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\TemplatePage, $this>
|
||||
*/
|
||||
public function pages(): HasMany
|
||||
{
|
||||
@@ -51,6 +55,8 @@ class Template extends Model
|
||||
|
||||
/**
|
||||
* Get the contacts associated with the template.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): HasMany
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ class TemplatePage extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'template_id',
|
||||
@@ -48,6 +48,8 @@ class TemplatePage extends Model
|
||||
|
||||
/**
|
||||
* Get the account associated with the template page.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Template, $this>
|
||||
*/
|
||||
public function template(): BelongsTo
|
||||
{
|
||||
@@ -56,6 +58,8 @@ class TemplatePage extends Model
|
||||
|
||||
/**
|
||||
* Get the modules associated with the template page.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Module, $this>
|
||||
*/
|
||||
public function modules(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ class TimelineEvent extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -48,6 +48,8 @@ class TimelineEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the timeline event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
@@ -56,6 +58,8 @@ class TimelineEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the life events associated with the timeline event.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\LifeEvent, $this>
|
||||
*/
|
||||
public function lifeEvents(): HasMany
|
||||
{
|
||||
@@ -64,6 +68,8 @@ class TimelineEvent extends Model
|
||||
|
||||
/**
|
||||
* Get the contact records the timeline event is with.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function participants(): BelongsToMany
|
||||
{
|
||||
|
||||
+16
-4
@@ -79,7 +79,7 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -105,7 +105,7 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
/**
|
||||
* The attributes that should be hidden for arrays.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password',
|
||||
@@ -117,7 +117,7 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
/**
|
||||
* The attributes that should be visible in serialization.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $visible = [
|
||||
'name',
|
||||
@@ -134,7 +134,7 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
/**
|
||||
* The accessors to append to the model's array form.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $appends = [
|
||||
'name',
|
||||
@@ -169,6 +169,8 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
|
||||
/**
|
||||
* Get the account record associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -177,6 +179,8 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
|
||||
/**
|
||||
* Get the vault records associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vaults(): BelongsToMany
|
||||
{
|
||||
@@ -187,6 +191,8 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
|
||||
/**
|
||||
* Get the contact records associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): BelongsToMany
|
||||
{
|
||||
@@ -197,6 +203,8 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
|
||||
/**
|
||||
* Get the note records associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Note, $this>
|
||||
*/
|
||||
public function notes(): HasMany
|
||||
{
|
||||
@@ -205,6 +213,8 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
|
||||
/**
|
||||
* Get the notification channel records associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\UserNotificationChannel, $this>
|
||||
*/
|
||||
public function notificationChannels(): HasMany
|
||||
{
|
||||
@@ -213,6 +223,8 @@ class User extends Authenticatable implements HasLocalePreference, MustVerifyEma
|
||||
|
||||
/**
|
||||
* Get the task records associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactTask, $this>
|
||||
*/
|
||||
public function contactTasks(): HasMany
|
||||
{
|
||||
|
||||
@@ -24,7 +24,7 @@ class UserNotificationChannel extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
@@ -50,6 +50,8 @@ class UserNotificationChannel extends Model
|
||||
|
||||
/**
|
||||
* Get the user associated with the user notification channel.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
@@ -59,6 +61,8 @@ class UserNotificationChannel extends Model
|
||||
/**
|
||||
* Get the user notification sent records associated with the user
|
||||
* notification channel.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\UserNotificationSent, $this>
|
||||
*/
|
||||
public function userNotificationSent(): HasMany
|
||||
{
|
||||
@@ -67,6 +71,8 @@ class UserNotificationChannel extends Model
|
||||
|
||||
/**
|
||||
* Get the contact reminder records associated with the user.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\ContactReminder, $this>
|
||||
*/
|
||||
public function contactReminders(): BelongsToMany
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ class UserNotificationSent extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'user_notification_channel_id',
|
||||
@@ -36,6 +36,8 @@ class UserNotificationSent extends Model
|
||||
|
||||
/**
|
||||
* Get the user notification channel associated with the user notification sent.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\UserNotificationChannel, $this>
|
||||
*/
|
||||
public function notificationChannel(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ class UserToken extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
@@ -30,7 +30,7 @@ class UserToken extends Model
|
||||
/**
|
||||
* The attributes that should be hidden for arrays.
|
||||
*
|
||||
* @var array<int, string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $hidden = [
|
||||
'token',
|
||||
@@ -41,7 +41,7 @@ class UserToken extends Model
|
||||
/**
|
||||
* The attributes that should be visible in serialization.
|
||||
*
|
||||
* @var array<int, string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $visible = [
|
||||
'driver',
|
||||
@@ -52,7 +52,7 @@ class UserToken extends Model
|
||||
/**
|
||||
* Get the user record associated with the company.
|
||||
*
|
||||
* @return BelongsTo
|
||||
* @return BelongsTo<User, $this>
|
||||
*/
|
||||
public function user()
|
||||
{
|
||||
|
||||
+39
-3
@@ -34,7 +34,7 @@ class Vault extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'account_id',
|
||||
@@ -75,14 +75,16 @@ class Vault extends Model
|
||||
|
||||
static::deleting(function (self $model) {
|
||||
foreach ($model->contacts as $contact) {
|
||||
$contact->notes()->unsearchable();
|
||||
$contact->notes()->unsearchable(); // @phpstan-ignore-line
|
||||
}
|
||||
$model->contacts()->unsearchable();
|
||||
$model->contacts()->unsearchable(); // @phpstan-ignore-line
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the account associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Account, $this>
|
||||
*/
|
||||
public function account(): BelongsTo
|
||||
{
|
||||
@@ -91,6 +93,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the template associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Template, $this>
|
||||
*/
|
||||
public function template(): BelongsTo
|
||||
{
|
||||
@@ -99,6 +103,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the contact associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Contact, $this>
|
||||
*/
|
||||
public function contacts(): HasMany
|
||||
{
|
||||
@@ -107,6 +113,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the labels associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Label, $this>
|
||||
*/
|
||||
public function labels(): HasMany
|
||||
{
|
||||
@@ -115,6 +123,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the users associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany<\App\Models\User, $this>
|
||||
*/
|
||||
public function users(): BelongsToMany
|
||||
{
|
||||
@@ -125,6 +135,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the contact important date types associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\ContactImportantDateType, $this>
|
||||
*/
|
||||
public function contactImportantDateTypes(): HasMany
|
||||
{
|
||||
@@ -133,6 +145,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the companies associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Company, $this>
|
||||
*/
|
||||
public function companies(): HasMany
|
||||
{
|
||||
@@ -141,6 +155,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the groups associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Group, $this>
|
||||
*/
|
||||
public function groups(): HasMany
|
||||
{
|
||||
@@ -149,6 +165,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the journals associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Journal, $this>
|
||||
*/
|
||||
public function journals(): HasMany
|
||||
{
|
||||
@@ -157,6 +175,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the tags associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Tag, $this>
|
||||
*/
|
||||
public function tags(): HasMany
|
||||
{
|
||||
@@ -165,6 +185,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the loans associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Loan, $this>
|
||||
*/
|
||||
public function loans(): HasMany
|
||||
{
|
||||
@@ -173,6 +195,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the files associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\File, $this>
|
||||
*/
|
||||
public function files(): HasMany
|
||||
{
|
||||
@@ -181,6 +205,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the mood tracking parameters associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\MoodTrackingParameter, $this>
|
||||
*/
|
||||
public function moodTrackingParameters(): HasMany
|
||||
{
|
||||
@@ -189,6 +215,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the life event categories associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\LifeEventCategory, $this>
|
||||
*/
|
||||
public function lifeEventCategories(): HasMany
|
||||
{
|
||||
@@ -197,6 +225,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the timeline events associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\TimelineEvent, $this>
|
||||
*/
|
||||
public function timelineEvents(): HasMany
|
||||
{
|
||||
@@ -205,6 +235,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the address records associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\Address, $this>
|
||||
*/
|
||||
public function addresses(): HasMany
|
||||
{
|
||||
@@ -213,6 +245,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the quick fact template entries records associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\VaultQuickFactsTemplate, $this>
|
||||
*/
|
||||
public function quickFactsTemplateEntries(): HasMany
|
||||
{
|
||||
@@ -221,6 +255,8 @@ class Vault extends Model
|
||||
|
||||
/**
|
||||
* Get the life metric records associated with the vault.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\LifeMetric, $this>
|
||||
*/
|
||||
public function lifeMetrics(): HasMany
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ class VaultQuickFactsTemplate extends Model
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int,string>
|
||||
* @var list<string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'vault_id',
|
||||
@@ -27,6 +27,8 @@ class VaultQuickFactsTemplate extends Model
|
||||
|
||||
/**
|
||||
* Get the vault associated with the quick fact template.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Vault, $this>
|
||||
*/
|
||||
public function vault(): BelongsTo
|
||||
{
|
||||
|
||||
@@ -80,7 +80,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
if (! Http::hasMacro('getDnsRecord')) {
|
||||
Http::macro('getDnsRecord', function (string $hostname, int $type): ?Collection {
|
||||
try {
|
||||
if (($entries = \Safe\dns_get_record($hostname, $type)) !== null) {
|
||||
if (($entries = \Safe\dns_get_record($hostname, $type)) != null) {
|
||||
return collect($entries);
|
||||
}
|
||||
} catch (\Safe\Exceptions\NetworkException) {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user