28 lines
514 B
PHP
28 lines
514 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
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);
|
|
}
|
|
}
|