Generated Model Documentation
This documentation is automatically generated by php artisan docs:models from the Laravel models and database schema. Last updated: 2026-03-21 23:24:33 UTC
Overview
- ** Total Models:** 31
- ** Database Connection:** mariadb
- ** Laravel Version:** 12.55.1
Table of Contents
Artist
Namespace: App\Models\Artist
Database Table
| Property |
Value |
| Table Name |
artists |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
place_of_birth |
varchar |
Unknown |
Unknown |
|
place_of_death |
varchar |
Unknown |
Unknown |
|
date_of_birth |
varchar |
Unknown |
Unknown |
|
date_of_death |
varchar |
Unknown |
Unknown |
|
period_of_activity |
varchar |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['name', 'place_of_birth', 'place_of_death', 'date_of_birth', 'date_of_death', 'period_of_activity', 'internal_name', 'backward_compatibility']
Attribute Casting
| Attribute |
Cast Type |
created_at |
datetime |
updated_at |
datetime |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To Many
items(): BelongsToMany Item
Author
Namespace: App\Models\Author
Database Table
| Property |
Value |
| Table Name |
authors |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['name', 'internal_name', 'backward_compatibility']
Attribute Casting
| Attribute |
Cast Type |
created_at |
datetime |
updated_at |
datetime |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
AvailableImage
Namespace: App\Models\AvailableImage
Database Table
| Property |
Value |
| Table Name |
available_images |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
comment |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Collection
Namespace: App\Models\Collection
Database Table
| Property |
Value |
| Table Name |
collections |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
type |
enum |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
context_id |
uuid |
Unknown |
Unknown |
|
parent_id |
uuid |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
latitude |
decimal |
Unknown |
Unknown |
|
longitude |
decimal |
Unknown |
Unknown |
|
map_zoom |
int |
Unknown |
Unknown |
|
country_id |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['internal_name', 'type', 'language_id', 'context_id', 'parent_id', 'display_order', 'backward_compatibility', 'latitude', 'longitude', 'map_zoom', 'country_id']
Attribute Casting
| Attribute |
Cast Type |
display_order |
integer |
latitude |
decimal:8 |
longitude |
decimal:8 |
map_zoom |
integer |
Model Constants
const TYPE_COLLECTION = 'collection';
const TYPE_EXHIBITION = 'exhibition';
const TYPE_GALLERY = 'gallery';
const TYPE_THEME = 'theme';
const TYPE_EXHIBITION_TRAIL = 'exhibition trail';
const TYPE_ITINERARY = 'itinerary';
const TYPE_LOCATION = 'location';
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Has Many
Belongs To Many
attachedItems(): BelongsToMany Item
partners(): BelongsToMany Partner
directPartners(): BelongsToMany Partner
associatedPartners(): BelongsToMany Partner
minorContributors(): BelongsToMany Partner
Query Scopes
collections()
exhibitions()
galleries()
themes()
exhibitionTrails()
itineraries()
locations()
roots()
childrenOf()
CollectionImage
Namespace: App\Models\CollectionImage
Database Table
| Property |
Value |
| Table Name |
collection_images |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
collection_id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
original_name |
varchar |
Unknown |
Unknown |
|
mime_type |
varchar |
Unknown |
Unknown |
|
size |
bigint |
Unknown |
Unknown |
|
alt_text |
varchar |
Unknown |
Unknown |
|
display_order |
int |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['collection_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']
Attribute Casting
| Attribute |
Cast Type |
size |
integer |
display_order |
integer |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
CollectionPartner
Namespace: App\Models\CollectionPartner
Database Table
| Property |
Value |
| Table Name |
collection_partner |
⚠️ Error generating documentation for this model: Array to string conversion
CollectionTranslation
Namespace: App\Models\CollectionTranslation
Database Table
| Property |
Value |
| Table Name |
collection_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
collection_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
context_id |
uuid |
Unknown |
Unknown |
|
title |
varchar |
Unknown |
Unknown |
|
description |
text |
Unknown |
Unknown |
|
quote |
text |
Unknown |
Unknown |
|
url |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
extra |
longtext |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['collection_id', 'language_id', 'context_id', 'title', 'description', 'quote', 'url', 'backward_compatibility', 'extra']
Attribute Casting
| Attribute |
Cast Type |
extra |
object |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
defaultContext()
forLanguage()
forContext()
Context
Namespace: App\Models\Context
Database Table
| Property |
Value |
| Table Name |
contexts |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
is_default |
tinyint |
Unknown |
Unknown |
|
Fillable Fields
['internal_name', 'backward_compatibility', 'is_default']
Attribute Casting
| Attribute |
Cast Type |
is_default |
boolean |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Query Scopes
Country
Namespace: App\Models\Country
Database Table
| Property |
Value |
| Table Name |
countries |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
varchar |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['id', 'internal_name', 'backward_compatibility']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Has Many
CountryTranslation
Namespace: App\Models\CountryTranslation
Database Table
| Property |
Value |
| Table Name |
country_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
country_id |
varchar |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
extra |
longtext |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['country_id', 'language_id', 'name', 'backward_compatibility', 'extra']
Attribute Casting
| Attribute |
Cast Type |
extra |
object |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
Glossary
Namespace: App\Models\Glossary
Database Table
| Property |
Value |
| Table Name |
glossaries |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['internal_name', 'backward_compatibility']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Has Many
Belongs To Many
GlossarySpelling
Namespace: App\Models\GlossarySpelling
Database Table
| Property |
Value |
| Table Name |
glossary_spellings |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
glossary_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
spelling |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['glossary_id', 'language_id', 'spelling']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Belongs To Many
Query Scopes
forLanguage()
forSpelling()
GlossaryTranslation
Namespace: App\Models\GlossaryTranslation
Database Table
| Property |
Value |
| Table Name |
glossary_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
glossary_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
definition |
text |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['glossary_id', 'language_id', 'definition']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
ImageUpload
Namespace: App\Models\ImageUpload
Database Table
| Property |
Value |
| Table Name |
image_uploads |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
extension |
varchar |
Unknown |
Unknown |
|
mime_type |
varchar |
Unknown |
Unknown |
|
size |
bigint |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['path', 'name', 'extension', 'mime_type', 'size']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Item
Namespace: App\Models\Item
Database Table
| Property |
Value |
| Table Name |
items |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
partner_id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
type |
enum |
Unknown |
Unknown |
|
parent_id |
uuid |
Unknown |
Unknown |
|
display_order |
int |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
country_id |
varchar |
Unknown |
Unknown |
|
project_id |
uuid |
Unknown |
Unknown |
|
collection_id |
uuid |
Unknown |
Unknown |
|
owner_reference |
varchar |
Unknown |
Unknown |
|
mwnf_reference |
varchar |
Unknown |
Unknown |
|
start_date |
smallint |
Unknown |
Unknown |
|
end_date |
smallint |
Unknown |
Unknown |
|
latitude |
decimal |
Unknown |
Unknown |
|
longitude |
decimal |
Unknown |
Unknown |
|
map_zoom |
int |
Unknown |
Unknown |
|
Fillable Fields
['partner_id', 'parent_id', 'internal_name', 'type', 'backward_compatibility', 'country_id', 'project_id', 'collection_id', 'owner_reference', 'mwnf_reference', 'display_order', 'start_date', 'end_date', 'latitude', 'longitude', 'map_zoom']
Attribute Casting
| Attribute |
Cast Type |
type |
App\Enums\ItemType |
display_order |
integer |
start_date |
integer |
end_date |
integer |
latitude |
decimal:8 |
longitude |
decimal:8 |
map_zoom |
integer |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Has Many
Belongs To Many
tags(): BelongsToMany Tag
artists(): BelongsToMany Artist
workshops(): BelongsToMany Workshop
attachedToCollections(): BelongsToMany Collection
Query Scopes
objects()
monuments()
details()
pictures()
parents()
children()
forTag()
withAllTags()
withAnyTags()
ItemImage
Namespace: App\Models\ItemImage
Database Table
| Property |
Value |
| Table Name |
item_images |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
item_id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
original_name |
varchar |
Unknown |
Unknown |
|
mime_type |
varchar |
Unknown |
Unknown |
|
size |
bigint |
Unknown |
Unknown |
|
alt_text |
varchar |
Unknown |
Unknown |
|
display_order |
int |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['item_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']
Attribute Casting
| Attribute |
Cast Type |
size |
integer |
display_order |
integer |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
ItemItemLink
Namespace: App\Models\ItemItemLink
Database Table
| Property |
Value |
| Table Name |
item_item_links |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
source_id |
uuid |
Unknown |
Unknown |
|
target_id |
uuid |
Unknown |
Unknown |
|
context_id |
uuid |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['source_id', 'target_id', 'context_id']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
source(): BelongsTo Item
target(): BelongsTo Item
context(): BelongsTo Context
Has Many
Query Scopes
fromSource()
toTarget()
inContext()
involvingItem()
ItemItemLinkTranslation
Namespace: App\Models\ItemItemLinkTranslation
Database Table
| Property |
Value |
| Table Name |
item_item_link_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
item_item_link_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
description |
text |
Unknown |
Unknown |
|
reciprocal_description |
text |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['item_item_link_id', 'language_id', 'description', 'reciprocal_description', 'backward_compatibility']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
ItemTranslation
Namespace: App\Models\ItemTranslation
Database Table
| Property |
Value |
| Table Name |
item_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
item_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
context_id |
uuid |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
alternate_name |
varchar |
Unknown |
Unknown |
|
description |
text |
Unknown |
Unknown |
|
type |
varchar |
Unknown |
Unknown |
|
holder |
text |
Unknown |
Unknown |
|
owner |
text |
Unknown |
Unknown |
|
initial_owner |
text |
Unknown |
Unknown |
|
dates |
text |
Unknown |
Unknown |
|
location |
text |
Unknown |
Unknown |
|
dimensions |
text |
Unknown |
Unknown |
|
place_of_production |
text |
Unknown |
Unknown |
|
method_for_datation |
text |
Unknown |
Unknown |
|
method_for_provenance |
text |
Unknown |
Unknown |
|
provenance |
text |
Unknown |
Unknown |
|
obtention |
text |
Unknown |
Unknown |
|
bibliography |
text |
Unknown |
Unknown |
|
author_id |
uuid |
Unknown |
Unknown |
|
text_copy_editor_id |
uuid |
Unknown |
Unknown |
|
translator_id |
uuid |
Unknown |
Unknown |
|
translation_copy_editor_id |
uuid |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
extra |
longtext |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['item_id', 'language_id', 'context_id', 'name', 'alternate_name', 'description', 'type', 'holder', 'owner', 'initial_owner', 'dates', 'location', 'dimensions', 'place_of_production', 'method_for_datation', 'method_for_provenance', 'provenance', 'obtention', 'bibliography', 'author_id', 'text_copy_editor_id', 'translator_id', 'translation_copy_editor_id', 'backward_compatibility', 'extra']
Attribute Casting
| Attribute |
Cast Type |
extra |
object |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
item(): BelongsTo Item
language(): BelongsTo Language
context(): BelongsTo Context
author(): BelongsTo Author
textCopyEditor(): BelongsTo Author
translator(): BelongsTo Author
translationCopyEditor(): BelongsTo Author
Belongs To Many
Query Scopes
defaultContext()
forLanguage()
forContext()
Language
Namespace: App\Models\Language
Database Table
| Property |
Value |
| Table Name |
languages |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
varchar |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
is_default |
tinyint |
Unknown |
Unknown |
|
Fillable Fields
['id', 'internal_name', 'backward_compatibility', 'is_default']
Attribute Casting
| Attribute |
Cast Type |
is_default |
boolean |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Has Many
Query Scopes
LanguageTranslation
Namespace: App\Models\LanguageTranslation
Database Table
| Property |
Value |
| Table Name |
language_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
display_language_id |
varchar |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
extra |
longtext |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['language_id', 'display_language_id', 'name', 'backward_compatibility', 'extra']
Attribute Casting
| Attribute |
Cast Type |
extra |
object |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
Partner
Namespace: App\Models\Partner
Database Table
| Property |
Value |
| Table Name |
partners |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
type |
enum |
Unknown |
Unknown |
|
latitude |
decimal |
Unknown |
Unknown |
|
longitude |
decimal |
Unknown |
Unknown |
|
map_zoom |
int |
Unknown |
Unknown |
|
project_id |
uuid |
Unknown |
Unknown |
|
monument_item_id |
uuid |
Unknown |
Unknown |
|
visible |
tinyint |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
country_id |
varchar |
Unknown |
Unknown |
|
Fillable Fields
['internal_name', 'type', 'backward_compatibility', 'country_id', 'latitude', 'longitude', 'map_zoom', 'project_id', 'monument_item_id', 'visible']
Attribute Casting
| Attribute |
Cast Type |
latitude |
decimal:8 |
longitude |
decimal:8 |
map_zoom |
integer |
visible |
boolean |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Has Many
Belongs To Many
Query Scopes
PartnerImage
Namespace: App\Models\PartnerImage
Database Table
| Property |
Value |
| Table Name |
partner_images |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
partner_id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
original_name |
varchar |
Unknown |
Unknown |
|
mime_type |
varchar |
Unknown |
Unknown |
|
size |
bigint |
Unknown |
Unknown |
|
alt_text |
text |
Unknown |
Unknown |
|
display_order |
int |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['partner_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']
Attribute Casting
| Attribute |
Cast Type |
size |
integer |
display_order |
integer |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
PartnerLogo
Namespace: App\Models\PartnerLogo
Database Table
| Property |
Value |
| Table Name |
partner_logos |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
partner_id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
original_name |
varchar |
Unknown |
Unknown |
|
mime_type |
varchar |
Unknown |
Unknown |
|
size |
bigint |
Unknown |
Unknown |
|
logo_type |
varchar |
Unknown |
Unknown |
|
alt_text |
text |
Unknown |
Unknown |
|
display_order |
int |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['partner_id', 'path', 'original_name', 'mime_type', 'size', 'logo_type', 'alt_text', 'display_order']
Attribute Casting
| Attribute |
Cast Type |
size |
integer |
display_order |
integer |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
PartnerTranslation
Namespace: App\Models\PartnerTranslation
Database Table
| Property |
Value |
| Table Name |
partner_translations |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
partner_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
context_id |
uuid |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
description |
text |
Unknown |
Unknown |
|
city_display |
varchar |
Unknown |
Unknown |
|
address_line_1 |
varchar |
Unknown |
Unknown |
|
address_line_2 |
varchar |
Unknown |
Unknown |
|
postal_code |
varchar |
Unknown |
Unknown |
|
address_notes |
text |
Unknown |
Unknown |
|
contact_name |
varchar |
Unknown |
Unknown |
|
contact_email_general |
varchar |
Unknown |
Unknown |
|
contact_email_press |
varchar |
Unknown |
Unknown |
|
contact_phone |
varchar |
Unknown |
Unknown |
|
contact_website |
varchar |
Unknown |
Unknown |
|
contact_notes |
text |
Unknown |
Unknown |
|
contact_emails |
longtext |
Unknown |
Unknown |
|
contact_phones |
longtext |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
extra |
longtext |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['partner_id', 'language_id', 'context_id', 'name', 'description', 'city_display', 'address_line_1', 'address_line_2', 'postal_code', 'address_notes', 'contact_name', 'contact_email_general', 'contact_email_press', 'contact_phone', 'contact_website', 'contact_notes', 'contact_emails', 'contact_phones', 'backward_compatibility', 'extra']
Attribute Casting
| Attribute |
Cast Type |
contact_emails |
array |
contact_phones |
array |
extra |
object |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Has Many
Query Scopes
defaultContext()
forLanguage()
forContext()
PartnerTranslationImage
Namespace: App\Models\PartnerTranslationImage
Database Table
| Property |
Value |
| Table Name |
partner_translation_images |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
partner_translation_id |
uuid |
Unknown |
Unknown |
|
path |
varchar |
Unknown |
Unknown |
|
original_name |
varchar |
Unknown |
Unknown |
|
mime_type |
varchar |
Unknown |
Unknown |
|
size |
bigint |
Unknown |
Unknown |
|
alt_text |
text |
Unknown |
Unknown |
|
display_order |
int |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['partner_translation_id', 'path', 'original_name', 'mime_type', 'size', 'alt_text', 'display_order']
Attribute Casting
| Attribute |
Cast Type |
size |
integer |
display_order |
integer |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Project
Namespace: App\Models\Project
Database Table
| Property |
Value |
| Table Name |
projects |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
launch_date |
date |
Unknown |
Unknown |
|
is_launched |
tinyint |
Unknown |
Unknown |
|
is_enabled |
tinyint |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
context_id |
uuid |
Unknown |
Unknown |
|
language_id |
varchar |
Unknown |
Unknown |
|
Fillable Fields
['internal_name', 'backward_compatibility', 'launch_date', 'is_launched', 'is_enabled', 'context_id', 'language_id']
Attribute Casting
| Attribute |
Cast Type |
launch_date |
datetime:Y-m-d |
is_launched |
boolean |
is_enabled |
boolean |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Query Scopes
isEnabled()
isLaunched()
isLaunchDatePassed()
visible()
enabled()
Setting
Namespace: App\Models\Setting
Database Table
| Property |
Value |
| Table Name |
settings |
| Primary Key |
id |
| Key Type |
Auto-incrementing Integer |
| Incrementing |
Yes |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
bigint |
Unknown |
Unknown |
|
key |
varchar |
Unknown |
Unknown |
|
value |
text |
Unknown |
Unknown |
|
type |
varchar |
Unknown |
Unknown |
|
description |
text |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['key', 'value', 'type', 'description']
Attribute Casting
| Attribute |
Cast Type |
id |
int |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Tag
Namespace: App\Models\Tag
Database Table
| Property |
Value |
| Table Name |
tags |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
category |
varchar |
Unknown |
Unknown |
|
language_id |
char |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
description |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['internal_name', 'category', 'language_id', 'backward_compatibility', 'description']
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To
Belongs To Many
items(): BelongsToMany Item
Query Scopes
forItem()
byCategory()
byLanguage()
User
Namespace: App\Models\User
Database Table
| Property |
Value |
| Table Name |
users |
| Primary Key |
id |
| Key Type |
Auto-incrementing Integer |
| Incrementing |
Yes |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
bigint |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
email |
varchar |
Unknown |
Unknown |
|
email_verified_at |
timestamp |
Unknown |
Unknown |
|
password |
varchar |
Unknown |
Unknown |
|
two_factor_secret |
text |
Unknown |
Unknown |
|
two_factor_recovery_codes |
text |
Unknown |
Unknown |
|
two_factor_confirmed_at |
timestamp |
Unknown |
Unknown |
|
remember_token |
varchar |
Unknown |
Unknown |
|
current_team_id |
bigint |
Unknown |
Unknown |
|
profile_photo_path |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['name', 'email', 'password']
Attribute Casting
| Attribute |
Cast Type |
id |
int |
email_verified_at |
datetime |
password |
hashed |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Morph Many
Query Scopes
role()
withoutRole()
permission()
withoutPermission()
Workshop
Namespace: App\Models\Workshop
Database Table
| Property |
Value |
| Table Name |
workshops |
| Primary Key |
id |
| Key Type |
String (UUID) |
| Incrementing |
No |
| Timestamps |
Yes (created_at, updated_at) |
Database Schema
| Column |
Type |
Nullable |
Default |
Extra |
id |
uuid |
Unknown |
Unknown |
|
name |
varchar |
Unknown |
Unknown |
|
internal_name |
varchar |
Unknown |
Unknown |
|
backward_compatibility |
varchar |
Unknown |
Unknown |
|
created_at |
timestamp |
Unknown |
Unknown |
|
updated_at |
timestamp |
Unknown |
Unknown |
|
Fillable Fields
['name', 'internal_name', 'backward_compatibility']
Attribute Casting
| Attribute |
Cast Type |
created_at |
datetime |
updated_at |
datetime |
Model Constants
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
Relationships
Belongs To Many
items(): BelongsToMany Item
This documentation was automatically generated using php artisan docs:models