37 lines
742 B
PHP
37 lines
742 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class DiscordWebhookMessage extends Model
|
|
{
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $fillable = [
|
|
"enabled",
|
|
"discord_webhook_url",
|
|
"username",
|
|
"avatar",
|
|
"content",
|
|
"has_embed",
|
|
"embed_color",
|
|
"embed_author_name",
|
|
"embed_author_url",
|
|
"embed_author_icon",
|
|
"embed_thumbnail",
|
|
"embed_title",
|
|
"embed_description",
|
|
"embed_url",
|
|
"embed_image",
|
|
"embed_fields"
|
|
];
|
|
|
|
public function twitchWebook() {
|
|
return $this->morphToMany("App\TwitchWebhook", "twitch_webhook_events");
|
|
}
|
|
}
|