You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
417 B

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Grupos extends Model
{
protected $primaryKey = 'id';
protected $table = 'grupos';
protected $fillable = [
'name',
'activo',
'eliminado',
'created_at',
'updated_at'
];
public function usuarios()
{
return $this->hasMany(User::class,'fk_id_grupos','id');
}
}