2023-03-28 10:09:34 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
class GithubApp extends BaseModel
|
|
|
|
{
|
2023-04-19 12:00:31 +00:00
|
|
|
protected $casts = [
|
|
|
|
'is_public' => 'boolean',
|
|
|
|
];
|
2023-03-28 10:09:34 +00:00
|
|
|
public function applications()
|
|
|
|
{
|
|
|
|
return $this->morphMany(Application::class, 'source');
|
|
|
|
}
|
2023-03-30 09:09:39 +00:00
|
|
|
public function privateKey()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(PrivateKey::class);
|
|
|
|
}
|
2023-03-28 10:09:34 +00:00
|
|
|
}
|