SummonerEmote model represents an in-game emote that players can use during matches in League of Legends. This is a simple model with core identification and display properties.
Source: source/app/Models/SummonerEmote.php
Properties
Database Columns
Auto-incrementing primary key
Riot Games emote identifierDatabase:
integerMigration: source/database/migrations/2023_11_26_175055_create_summoner_emotes_table.php:13Emote name or titleDatabase:
stringMigration: source/database/migrations/2023_11_26_175055_create_summoner_emotes_table.php:14Emote image URL or pathDatabase:
stringMigration: source/database/migrations/2023_11_26_175055_create_summoner_emotes_table.php:15Record creation timestamp
Record last update timestamp
Relationships
This model does not have any defined relationships.Accessors & Methods
This model does not define any custom accessors or methods beyond what’s inherited from the baseModel class.
Traits
This model uses only the base EloquentModel class without additional traits.
Source: source/app/Models/SummonerEmote.php:7
Fillable Attributes
The following attributes are mass-assignable: Source:source/app/Models/SummonerEmote.php:9-13
emote_idtitleimage
Usage Example
Model Structure
This is a minimal Eloquent model with a straightforward structure. The complete model definition is only 15 lines:source/app/Models/SummonerEmote.php:1-15
Notes
- This is the simplest model in the system with only three fillable attributes
- Unlike
SummonerIcon, this model does not use theSluggabletrait and routes by ID - No relationships are defined, suggesting emotes are standalone entities
- No custom accessors or mutators are needed for this model’s data
- The model relies entirely on standard Eloquent functionality