2020-04-12 00:26:44 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Activity extends Model
|
|
|
|
{
|
|
|
|
|
|
|
|
public $fillable = ['name', 'nami_id'];
|
|
|
|
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
public $casts = [
|
|
|
|
'nami_id' => 'integer'
|
|
|
|
];
|
|
|
|
|
2021-06-23 01:05:17 +02:00
|
|
|
public function subactivities() {
|
|
|
|
return $this->belongsToMany(Subactivity::class);
|
2020-04-12 00:26:44 +02:00
|
|
|
}
|
|
|
|
}
|