29 lines
552 B
PHP
29 lines
552 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
use App\Models\InternshipApplication;
|
|
|
|
class Internship extends Model
|
|
{
|
|
protected $fillable = [
|
|
'title',
|
|
'title_description',
|
|
'salary_per_month',
|
|
'bullets',
|
|
'location',
|
|
'salary_currency',
|
|
];
|
|
|
|
protected $casts = [
|
|
'bullets' => 'array',
|
|
];
|
|
|
|
public function applications(): HasMany
|
|
{
|
|
return $this->hasMany(InternshipApplication::class);
|
|
}
|
|
}
|