2024-04-27 15:06:00 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2024-05-29 16:18:46 +03:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
2024-04-27 15:06:00 +03:00
|
|
|
|
2024-05-02 09:13:05 +03:00
|
|
|
class Label extends Model
|
2024-04-27 15:06:00 +03:00
|
|
|
{
|
|
|
|
use HasFactory;
|
2024-05-23 14:48:29 +03:00
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'department_id',
|
|
|
|
'created_by_id',
|
|
|
|
];
|
2024-05-29 16:18:46 +03:00
|
|
|
|
|
|
|
public function tasks(): BelongsToMany
|
|
|
|
{
|
|
|
|
return $this->belongsToMany(Task::class);
|
|
|
|
}
|
2024-04-27 15:06:00 +03:00
|
|
|
}
|