- 2.x - sites (wip)

- improved ssh error handling
- database soft deletes
This commit is contained in:
Saeed Vaziry
2024-10-04 21:34:07 +02:00
parent ecdba02bc9
commit d1f2add699
64 changed files with 1340 additions and 421 deletions

View File

@ -15,6 +15,7 @@
* @property ?string $url
* @property string $access_token
* @property ?int $project_id
* @property string $image_url
*/
class SourceControl extends AbstractModel
{
@ -63,4 +64,9 @@ public static function getByProjectId(int $projectId): Builder
->where('project_id', $projectId)
->orWhereNull('project_id');
}
public function getImageUrlAttribute(): string
{
return url('/static/images/'.$this->provider.'.svg');
}
}