1
0
mirror of https://github.com/robonen/education-project.git synced 2026-03-20 02:44:31 +00:00
This commit is contained in:
nikden13
2020-12-16 03:13:20 +07:00
parent c93ffe8b0f
commit 045a767774
22 changed files with 231 additions and 54 deletions

29
app/Models/ChatLink.php Normal file
View File

@@ -0,0 +1,29 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ChatLink extends Model
{
use HasFactory;
protected $fillable = [
'name',
'link',
'class_id',
];
public function schoolClass()
{
return $this->belongsTo(SchoolClass::class, 'class_id');
}
public function creator()
{
return $this->hasMany(User::class, 'creator');
}
}