move into sonardesk
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Careers\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
|
||||
final class Job extends Model
|
||||
{
|
||||
protected $table = 'career_jobs';
|
||||
|
||||
protected $fillable = ['title', 'slug', 'department', 'location', 'employment_type', 'description', 'status', 'published_at', 'closes_at'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['published_at' => 'datetime', 'closes_at' => 'datetime'];
|
||||
}
|
||||
|
||||
public function applications(): HasMany
|
||||
{
|
||||
return $this->hasMany(Application::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user