2023-03-28 12:09:34 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class GitlabApp extends BaseModel
|
|
|
|
{
|
2023-06-16 12:00:36 +02:00
|
|
|
protected $hidden = [
|
|
|
|
'webhook_token',
|
|
|
|
'app_secret',
|
|
|
|
];
|
2023-08-08 11:51:36 +02:00
|
|
|
|
2023-04-25 14:43:35 +02:00
|
|
|
public function applications()
|
|
|
|
{
|
|
|
|
return $this->morphMany(Application::class, 'source');
|
|
|
|
}
|
2023-08-08 11:51:36 +02:00
|
|
|
|
2023-03-30 11:09:39 +02:00
|
|
|
public function privateKey()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(PrivateKey::class);
|
|
|
|
}
|
2023-03-28 12:09:34 +02:00
|
|
|
}
|