QM-Texterkennung: Imagick nur mit Ghostscript als verfügbar melden
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 3m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 3m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 3m0s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 2m56s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m4s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m1s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m41s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m39s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m10s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 3m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 3m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 3m0s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 2m56s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 4m4s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 4m1s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 3m41s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 3m39s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m10s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5a360d3cc7
commit
b50d089946
117 changed files with 1747 additions and 2 deletions
44
plugins-core/gemeinsam/src/Models/Entry.php
Normal file
44
plugins-core/gemeinsam/src/Models/Entry.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
namespace Inhaus\Plugins\Gemeinsam\Models;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
#[Fillable(['section', 'user_id', 'name', 'date', 'born_on', 'department', 'location', 'from', 'to', 'label', 'text', 'created_by'])]
|
||||
class Entry extends Model
|
||||
{
|
||||
protected $table = 'gemeinsam_entries';
|
||||
|
||||
/** Abschnitte in der Reihenfolge der Seite (Geburtstage kommen aus dem Geburtstags-Plugin). */
|
||||
public const SECTIONS = [
|
||||
'welcome' => 'Wir begrüßen die neuen Mitarbeitenden',
|
||||
'transfer' => 'Den Einsatzort wechseln',
|
||||
'birthdays' => 'Geburtstage',
|
||||
'jubilee' => 'Jubilare',
|
||||
'farewell' => 'Wir verabschieden',
|
||||
'memoriam' => 'In Gedenken an',
|
||||
];
|
||||
|
||||
public const MANUAL = ['welcome', 'transfer', 'jubilee', 'farewell', 'memoriam'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['date' => 'date', 'born_on' => 'date'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo<User, $this>
|
||||
*/
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function displayName(): string
|
||||
{
|
||||
return $this->user?->name ?? (string) $this->name;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue