vito/app/Models/Redirect.php
Saeed Vaziry 428140b931
refactoring (#116)
- refactoring architecture
- fix incomplete ssh logs
- code editor for scripts in the app
- remove Jobs and SSHCommands
2024-03-14 20:03:43 +01:00

37 lines
646 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* @property int $site_id
* @property int $mode
* @property string $from
* @property string $to
* @property string $status
*/
class Redirect extends AbstractModel
{
use HasFactory;
protected $fillable = [
'site_id',
'mode',
'from',
'to',
'status',
];
protected $casts = [
'site_id' => 'integer',
'mode' => 'integer',
];
public function site(): BelongsTo
{
return $this->belongsTo(Site::class);
}
}