Version 1.0.0

This commit is contained in:
2025-05-10 16:52:45 +02:00
commit bed95bff35
459 changed files with 36475 additions and 0 deletions

31
app/Models/Attachment.php Normal file
View File

@@ -0,0 +1,31 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Attachment extends Model
{
protected $fillable = ['file_name', 'file_path'];
public function articles(): BelongsToMany
{
return $this->belongsToMany(Article::class, 'article_attachment');
}
public function articlesNews(): BelongsToMany
{
return $this->belongsToMany(ArticleNews::class, 'article_news_attachment');
}
public function jobOffers(): BelongsToMany
{
return $this->belongsToMany(JobOffers::class, 'job_offers_attachment');
}
public function projectArticles(): BelongsToMany
{
return $this->belongsToMany(ProjectArticle::class, 'project_article_attachment');
}
}