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

36
app/Models/JobOffers.php Normal file
View File

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class JobOffers extends Model
{
protected $table = 'job_offers';
protected $fillable = [
'title',
'slug',
'body',
'active',
'published_at',
'user_id',
];
public function attachments(): BelongsToMany
{
return $this->belongsToMany(Attachment::class, 'job_offers_attachment');
}
public function photos(): BelongsToMany
{
return $this->belongsToMany(Photo::class, 'job_offers_photo');
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}