ldc-supportweb/app/Models/GitlabProject.php
2026-05-19 16:47:07 +02:00

51 lines
1.6 KiB
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Uwil\LaravelActivityLogs\Traits\HasActivityLog;
use Uwil\LaravelBackend\Traits\Models\HasCache;
use Uwil\LaravelBackend\Traits\Models\HasModelNaming;
use Uwil\LaravelI18n\Traits\Models\HasTranslations;
/**
* @property integer $id Primary key of the gitlab project relation.
* @property string $name Name of the gitlab project.
* @property string $url Url of the gitlab project.
* @property \App\Models\User $gitlab_id Gitlab id of the gitlab project.
* @property-read \Illuminate\Support\Carbon $created_at Date the gitlab project was created.
* @property-read \Illuminate\Support\Carbon $updated_at Date the gitlab project was updated.
* @property-read \Illuminate\Support\Carbon $deleted_at Date the gitlab project was deleted.
*/
class GitlabProject extends Model
{
use HasActivityLog;
use HasCache;
/** @use \Illuminate\Database\Eloquent\Factories\HasFactory<\Database\Factories\GitlabProjectFactory> */
use HasFactory;
use HasModelNaming;
use HasTranslations;
use SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $fillable = [
'name',
'url',
'gitlab_id',
];
/**
* The translatable columns.
*
* @var list<string>
*/
public $translatable = [
'name',
];
}