19 lines
341 B
PHP
19 lines
341 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class GithubApp extends BaseModel
|
|
{
|
|
protected $casts = [
|
|
'is_public' => 'boolean',
|
|
];
|
|
public function applications()
|
|
{
|
|
return $this->morphMany(Application::class, 'source');
|
|
}
|
|
public function privateKey()
|
|
{
|
|
return $this->belongsTo(PrivateKey::class);
|
|
}
|
|
}
|