adrema/app/Group.php

20 lines
343 B
PHP
Raw Normal View History

2020-04-12 00:26:44 +02:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
2021-06-13 11:27:22 +02:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
2020-04-12 00:26:44 +02:00
class Group extends Model
{
2021-06-13 11:27:22 +02:00
use HasFactory;
2020-04-12 00:26:44 +02:00
public $fillable = ['name', 'nami_id'];
public $timestamps = false;
public function activities() {
return $this->belongsToMany(Activity::class);
}
}