Update Submissions and add fields

This commit is contained in:
2026-06-10 11:04:26 +02:00
parent 1d8ea70b72
commit 4f9f6c63b3
64 changed files with 2278 additions and 174 deletions

14
app/Traits/HasGallery.php Normal file
View File

@@ -0,0 +1,14 @@
<?php
namespace App\Traits;
use App\Models\Gallery;
use Illuminate\Database\Eloquent\Relations\MorphMany;
trait HasGallery
{
public function gallery(): MorphMany
{
return $this->morphMany(Gallery::class, 'galleryable')->orderBy('id');
}
}