First commit
This commit is contained in:
25
app/WebhookAction.php
Normal file
25
app/WebhookAction.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class WebhookAction extends Model
|
||||
{
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
"discord_hook_url"
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the twitch webhook that executes this action.
|
||||
*/
|
||||
public function twitchWebhook() {
|
||||
return $this->belongsTo("App\TwitchWebhook", "webhook_id");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user