phase 1 and 2

This commit is contained in:
Doar Mihai
2026-04-03 00:23:01 +03:00
parent 4976742c29
commit 9dcf3c36d7
33 changed files with 2563 additions and 5 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class UserSavedJob extends Model
{
protected $fillable = [
'user_id',
'job_id',
];
/**
* Get the user who saved the job.
*/
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/**
* Get the saved job.
*/
public function job(): BelongsTo
{
return $this->belongsTo(Job::class);
}
}