mirror of https://github.com/movim/movim
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
18 lines
342 B
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EmojisPack extends Model
|
|
{
|
|
protected $table = 'emojis_packs';
|
|
protected $with = ['emojis'];
|
|
public $primaryKey = 'name';
|
|
protected $keyType = 'string';
|
|
|
|
public function emojis()
|
|
{
|
|
return $this->hasMany('App\Emoji', 'pack', 'name');
|
|
}
|
|
}
|