adrema/app/Subactivity.php

20 lines
349 B
PHP
Raw Normal View History

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