college-courses/app/Models/Role.php

19 lines
293 B
PHP
Raw Normal View History

2024-10-15 10:15:40 +03:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Role extends Model
{
use HasFactory;
public $timestamps = false;
public function users()
{
return $this->hasMany(User::class);
}
}